mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
small cleanup in status()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4833 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b14e9baa57
commit
f4e60f017e
@ -1,3 +1,7 @@
|
||||
2002-08-02 John Levon <levon@movementarian.org>
|
||||
|
||||
* text2.C (status): small cleanup, no logic change
|
||||
|
||||
2002-08-01 John Levon <levon@movementarian.org>
|
||||
|
||||
* buffer.h:
|
||||
|
17
src/text2.C
17
src/text2.C
@ -2633,6 +2633,8 @@ LyXText::text_status LyXText::status() const
|
||||
|
||||
void LyXText::status(BufferView * bview, LyXText::text_status st) const
|
||||
{
|
||||
LyXText * t = view->text;
|
||||
|
||||
// We should only go up with refreshing code so this means that if
|
||||
// we have a MORE refresh we should never set it to LITTLE if we still
|
||||
// didn't handle it (and then it will be UNCHANGED. Now as long as
|
||||
@ -2643,17 +2645,14 @@ void LyXText::status(BufferView * bview, LyXText::text_status st) const
|
||||
// tell'em that it should redraw the actual row (where the inset
|
||||
// resides! Capito?!
|
||||
|
||||
if ((status_ != NEED_MORE_REFRESH)
|
||||
|| (status_ == NEED_MORE_REFRESH
|
||||
&& st != NEED_VERY_LITTLE_REFRESH))
|
||||
{
|
||||
if (status_ != NEED_MORE_REFRESH || st != NEED_VERY_LITTLE_REFRESH) {
|
||||
status_ = st;
|
||||
if (inset_owner && st != UNCHANGED) {
|
||||
bview->text->status(bview, NEED_VERY_LITTLE_REFRESH);
|
||||
if (!bview->text->refresh_row) {
|
||||
bview->text->refresh_row = bview->text->cursor.row();
|
||||
bview->text->refresh_y = bview->text->cursor.y() -
|
||||
bview->text->cursor.row()->baseline();
|
||||
t->status(bview, NEED_VERY_LITTLE_REFRESH);
|
||||
if (!t->refresh_row) {
|
||||
t->refresh_row = t->cursor.row();
|
||||
t->refresh_y = t->cursor.y() -
|
||||
t->cursor.row()->baseline();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user