From 762d0873968a372e8ab829f2317e94aebdb71c9b Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 5 Sep 2007 13:29:31 +0000 Subject: [PATCH] fix warning. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20067 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 7ce16c4c05..a032e4f112 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1531,9 +1531,6 @@ void BufferView::menuInsertLyXFile(string const & filenm) void BufferView::draw(frontend::Painter & pain) { - Text & text = buffer_.text(); - bool const select = cursor_.selection(); - PainterInfo pi(this, pain); // Should the whole screen, including insets, be refreshed? // FIXME: We should also distinguish DecorationUpdate to avoid text @@ -1548,6 +1545,7 @@ void BufferView::draw(frontend::Painter & pain) buffer_.inset().backgroundColor()); LYXERR(Debug::PAINTING) << "\t\t*** START DRAWING ***" << endl; + Text & text = buffer_.text(); TextMetrics const & tm = text_metrics_[&text]; if (!pi.full_repaint) tm.drawParagraph(pi, metrics_info_.p1, 0, -- 2.39.2