mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
remove unneeded refresh_row
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7279 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9f24c7105a
commit
69572ae035
@ -1,4 +1,9 @@
|
||||
|
||||
2003-07-15 André Pönitz <poenitz@gmx.net>
|
||||
|
||||
* text.C:
|
||||
* text2.C: remove no more needed refresh_row
|
||||
|
||||
2003-07-15 André Pönitz <poenitz@gmx.net>
|
||||
|
||||
* lyxtext.h:
|
||||
|
@ -200,12 +200,6 @@ private:
|
||||
* the viewable portion of the lyxtext).
|
||||
*/
|
||||
int refresh_y;
|
||||
/**
|
||||
* The row from which to repaint the screen, used by screen.c.
|
||||
* This must be set if the pending update is REFRESH_ROW.
|
||||
* It doesn't make any difference for REFRESH_AREA.
|
||||
*/
|
||||
RowList::iterator refresh_row;
|
||||
// do we need a refresh?
|
||||
bool need_refresh_;
|
||||
|
||||
|
16
src/text2.C
16
src/text2.C
@ -63,7 +63,6 @@ LyXText::LyXText(BufferView * bv)
|
||||
{
|
||||
anchor_row_ = rows().end();
|
||||
need_break_row = rows().end();
|
||||
refresh_row = rows().end();
|
||||
|
||||
clearPaint();
|
||||
}
|
||||
@ -75,7 +74,6 @@ LyXText::LyXText(BufferView * bv, InsetText * inset)
|
||||
{
|
||||
anchor_row_ = rows().end();
|
||||
need_break_row = rows().end();
|
||||
refresh_row = rows().end();
|
||||
|
||||
clearPaint();
|
||||
}
|
||||
@ -260,17 +258,6 @@ void LyXText::setCharFont(Buffer const * buf, ParagraphList::iterator pit,
|
||||
// removes the row and reset the touched counters
|
||||
void LyXText::removeRow(RowList::iterator rit)
|
||||
{
|
||||
/* FIXME: when we cache the bview, this should just
|
||||
* become a postPaint(), I think */
|
||||
if (refresh_row == rit) {
|
||||
if (rit == rows().begin())
|
||||
refresh_row = boost::next(rit);
|
||||
else
|
||||
refresh_row = boost::prior(rit);
|
||||
|
||||
// what about refresh_y
|
||||
}
|
||||
|
||||
if (anchor_row_ == rit) {
|
||||
if (rit != rows().begin()) {
|
||||
anchor_row_ = boost::prior(rit);
|
||||
@ -2297,7 +2284,6 @@ bool LyXText::needRefresh() const
|
||||
void LyXText::clearPaint()
|
||||
{
|
||||
need_refresh_ = false;
|
||||
refresh_row = rows().end();
|
||||
refresh_y = 0;
|
||||
}
|
||||
|
||||
@ -2307,7 +2293,6 @@ void LyXText::postPaint(int start_y)
|
||||
bool old = need_refresh_;
|
||||
|
||||
need_refresh_ = true;
|
||||
refresh_row = rows().end();
|
||||
|
||||
if (old && refresh_y < start_y)
|
||||
return;
|
||||
@ -2339,7 +2324,6 @@ void LyXText::postRowPaint(RowList::iterator rit, int start_y)
|
||||
return;
|
||||
|
||||
need_refresh_ = true;
|
||||
refresh_row = rit;
|
||||
|
||||
if (!inset_owner)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user