else
limits_ = 0;
} else if (limits_ == 0)
else
limits_ = 0;
} else if (limits_ == 0)
- limits_ = (hasLimits()) ? -1 : 1;
+ limits_ = hasLimits() ? -1 : 1;
else
limits_ = 0;
return DispatchResult(true, true);
else
limits_ = 0;
return DispatchResult(true, true);
int LyXText::cursorX(LyXCursor const & cur) const
{
ParagraphList::iterator pit = getPar(cur);
int LyXText::cursorX(LyXCursor const & cur) const
{
ParagraphList::iterator pit = getPar(cur);
+ if (pit->rows.empty())
+ return 0;
Row const & row = *pit->getRow(cur.pos());
pos_type pos = cur.pos();
pos_type cursor_vpos = 0;
Row const & row = *pit->getRow(cur.pos());
pos_type pos = cur.pos();
pos_type cursor_vpos = 0;