- Add debugging input
- If cursor::dispatch does not handle the func, then it should not request an update
- Dump metrics cache after redraw
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15443
a592a061-630c-0410-9148-
cb99ea01b6c8
metrics_info_ = ViewMetricsInfo(pit1, pit2, y1, y2, singlepar, size);
if (lyxerr.debugging(Debug::WORKAREA)) {
+ lyxerr[Debug::WORKAREA] << "BufferView::updateMetrics" << endl;
coord_cache_.dump();
}
}
// select the replacement
if (backwards) {
selbeg.pos() += str.length();
- cur.setSelection(selbeg, -str.length());
+ cur.setSelection(selbeg, -int(str.length()));
} else
cur.setSelection(selbeg, str.length());
}
if (!disp_.dispatched()) {
lyxerr[Debug::DEBUG] << "RESTORING OLD CURSOR!" << endl;
operator=(safe);
+ disp_.update(false);
disp_.dispatched(false);
}
}
}
-void LCursor::setSelection(DocIterator const & where, size_t n)
+void LCursor::setSelection(DocIterator const & where, int n)
{
setCursor(where);
selection() = true;
///
void setSelection();
/// set selection at given position
- void setSelection(DocIterator const & where, size_t n);
+ void setSelection(DocIterator const & where, int n);
///
void clearSelection();
/// access start of selection
void LyXView::redrawWorkArea()
{
- lyxerr[Debug::WORKAREA] << "redrawWorkArea" << std::endl;
+ lyxerr[Debug::WORKAREA] << "LyXView::redrawWorkArea" << std::endl;
work_area_->redraw();
updateStatusBar();
}
expose(0, ymin, width(), ymax - ymin);
getPainter().end();
- lyxerr[Debug::DEBUG]
+ lyxerr[Debug::WORKAREA]
<< " ymin = " << ymin << " width() = " << width()
<< " ymax-ymin = " << ymax-ymin << std::endl;
+
+ if (lyxerr.debugging(Debug::WORKAREA)) {
+ buffer_view_->coordCache().dump();
+ }
}