mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
remove spurious call to repaint()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7305 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7b0b1cdaae
commit
341e897787
@ -795,7 +795,7 @@ dispatch_result MathHullInset::dispatch
|
||||
? Alert::askForText(_("Enter new label to insert:"), default_label)
|
||||
: Alert::askForText(_("Enter label:"), old_label);
|
||||
if (!res.first)
|
||||
break;
|
||||
return UNDISPATCHED;
|
||||
new_label = trim(res.second);
|
||||
}
|
||||
|
||||
@ -804,13 +804,6 @@ dispatch_result MathHullInset::dispatch
|
||||
|
||||
if (!new_label.empty())
|
||||
numbered(r, true);
|
||||
|
||||
#warning FIXME: please check you really mean repaint() ... is it needed,
|
||||
#warning and if so, should it be update() instead ?
|
||||
if (!new_label.empty()
|
||||
&& cmd.view()->ChangeRefsIfUnique(old_label, new_label))
|
||||
cmd.view()->repaint();
|
||||
|
||||
label(r, new_label);
|
||||
return DISPATCHED;
|
||||
}
|
||||
@ -840,9 +833,7 @@ dispatch_result MathHullInset::dispatch
|
||||
|
||||
default:
|
||||
return MathGridInset::dispatch(cmd, idx, pos);
|
||||
|
||||
}
|
||||
return UNDISPATCHED;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user