From b719f4b39b02227add3edc96cd8f9e521016fbc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Mon, 10 Nov 2003 10:21:11 +0000 Subject: [PATCH] a few bv_owner -> bv() changes git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8067 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text2.C | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/text2.C b/src/text2.C index 3319d4cb61..124cdaf48f 100644 --- a/src/text2.C +++ b/src/text2.C @@ -553,9 +553,9 @@ void LyXText::clearSelection() { TextCursor::clearSelection(); - // reset this in the bv_owner! - if (bv_owner && bv_owner->text) - bv_owner->text->xsel_cache.set(false); + // reset this in the bv()! + if (bv() && bv()->text) + bv()->text->xsel_cache.set(false); } @@ -1623,7 +1623,7 @@ void LyXText::cursorUp(bool selecting) int y = cursor.y() - crow.baseline() - 1; setCursorFromCoordinates(x, y); if (!selecting) { - int topy = bv_owner->top_y(); + int topy = bv()->top_y(); int y1 = cursor.y() - topy; int y2 = y1; y -= topy; @@ -1649,7 +1649,7 @@ void LyXText::cursorDown(bool selecting) int y = cursor.y() - crow.baseline() + crow.height() + 1; setCursorFromCoordinates(x, y); if (!selecting) { - int topy = bv_owner->top_y(); + int topy = bv()->top_y(); int y1 = cursor.y() - topy; int y2 = y1; y -= topy; -- 2.39.2