mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
The bug-fix in revision 16531 introduced another bug. This is the right fix. I did not understood correctly what was anchor_ref_.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16536 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
594a589bc4
commit
0b995c888f
@ -1331,6 +1331,7 @@ ViewMetricsInfo const & BufferView::viewMetricsInfo()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// FIXME: We should split-up updateMetrics() for the singlepar case.
|
||||||
void BufferView::updateMetrics(bool singlepar)
|
void BufferView::updateMetrics(bool singlepar)
|
||||||
{
|
{
|
||||||
LyXText & buftext = buffer_->text();
|
LyXText & buftext = buffer_->text();
|
||||||
@ -1342,13 +1343,10 @@ void BufferView::updateMetrics(bool singlepar)
|
|||||||
offset_ref_ = 0;
|
offset_ref_ = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// In singlepar mode, the anchor has to be reset because
|
// If the paragraph metrics has changed, we can not
|
||||||
// there is no metrics update with keyboard mouvement or
|
// use the singlepar optimisation.
|
||||||
// mouse clicking if this didn't resulted in scrolling.
|
if (singlepar && tm.redoParagraph(cursor_.bottom().pit()))
|
||||||
// FIXME: We should splitup updateMetrics() for the singlepar
|
singlepar = false;
|
||||||
// case.
|
|
||||||
if (singlepar)
|
|
||||||
anchor_ref_ = cursor_.bottom().pit();
|
|
||||||
|
|
||||||
pit_type const pit = anchor_ref_;
|
pit_type const pit = anchor_ref_;
|
||||||
int pit1 = pit;
|
int pit1 = pit;
|
||||||
|
Loading…
Reference in New Issue
Block a user