From 50d1ba117ab2ba579f7ca1f8ef24effc07f517a0 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Fri, 15 Dec 2006 15:39:57 +0000 Subject: [PATCH] add a comment in workAreaResize git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16280 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.C | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/BufferView.C b/src/BufferView.C index 6da56b3fd5..3bb94f8d93 100644 --- a/src/BufferView.C +++ b/src/BufferView.C @@ -1013,9 +1013,10 @@ void BufferView::clearSelection() void BufferView::workAreaResize(int width, int height) { - bool const widthChange = width != width_; - bool const heightChange = height != height_; - + // A resize is triggered whenever a window gets focus, + // because of the shared rows() of a buffer in multiple + // buffer views. + // Update from work area width_ = width; height_ = height; -- 2.39.2