Commit a9287119 authored by mil's avatar mil Committed by Jonathan Wilkes
Browse files

Resolves bug where canvas w/ a label placed in GOP can freeze UI

Similar to #214 -- bug will only occur if the canvas label overlaps the GOP area
parent 22fd508f
......@@ -2832,10 +2832,12 @@ function gui_iemgui_label_select(cid, tag, is_selected) {
var svg_text;
if (patchwin[cid]) {
svg_text = get_item(cid, tag + "label");
if (is_selected) {
svg_text.classList.add("iemgui_label_selected");
} else {
svg_text.classList.remove("iemgui_label_selected");
if (svg_text) {
if (is_selected) {
svg_text.classList.add("iemgui_label_selected");
} else {
svg_text.classList.remove("iemgui_label_selected");
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment