mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
tiny optimisation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16652 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c7aac5e1c6
commit
5078b7ab57
@ -274,11 +274,12 @@ void DocIterator::forwardPos(bool ignorecollapsed)
|
||||
return;
|
||||
}
|
||||
|
||||
InsetBase * nextinset = nextInset();
|
||||
// jump over collapsables if they are collapsed
|
||||
// FIXME: the check for asInsetMath() shouldn't be necessary
|
||||
// but math insets do not return a sensible editable() state yet.
|
||||
if (ignorecollapsed && nextInset() && (!nextInset()->asInsetMath()
|
||||
&& nextInset()->editable() != InsetBase::HIGHLY_EDITABLE)) {
|
||||
if (ignorecollapsed && nextinset && (!nextinset->asInsetMath()
|
||||
&& nextinset->editable() != InsetBase::HIGHLY_EDITABLE)) {
|
||||
++top().pos();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user