summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/gridwin4.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2011-11-24 23:36:57 +0100
committerEike Rathke <erack@redhat.com>2011-11-25 01:01:16 +0100
commit871b87f9d3787967bfe1ff9dd9314d7b2a0f19c3 (patch)
treef68cf2ee5abf529c95240af8dfad80110e5934cd /sc/source/ui/view/gridwin4.cxx
parenta70f7bfc5ee22aa54c98cb8aab69b5eb97a86bbd (diff)
calc69: #i117893# call GetSizePixel before setting bIsInPaint
# Original author: Niklas Nebel <nn@openoffice.org> * found as LGPLv3-only fix at svn rev 1172136 (http://svn.apache.org/viewvc?view=revision&revision=1172136)
Diffstat (limited to 'sc/source/ui/view/gridwin4.cxx')
-rw-r--r--sc/source/ui/view/gridwin4.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index e1d582c59daf..1f82d64e0c53 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -342,6 +342,10 @@ void ScGridWindow::Paint( const Rectangle& rRect )
return;
}
+ // #i117893# If GetSizePixel needs to call the resize handler, the resulting nested Paint call
+ // (possibly for a larger rectangle) has to be allowed. Call GetSizePixel before setting bIsInPaint.
+ GetSizePixel();
+
if (bIsInPaint)
return;