summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/arealink.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-07-11 06:09:19 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-07-11 06:09:19 +0000
commitc556b3bf4596843b39812420173cf13f2dc02b3d (patch)
tree9b1ccbff5b342f13bd68fb9432352656d3064f8e /sc/source/ui/docshell/arealink.cxx
parent5d96c0daf740f036556684ea9073cf3c8a24f560 (diff)
INTEGRATION: CWS calccrashes (1.28.72); FILE MERGED
2008/07/07 10:15:16 nn 1.28.72.1: #i91329# Refresh: check for range overflow
Diffstat (limited to 'sc/source/ui/docshell/arealink.cxx')
-rw-r--r--sc/source/ui/docshell/arealink.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/arealink.cxx b/sc/source/ui/docshell/arealink.cxx
index f44686bcdc92..57ea8f060194 100644
--- a/sc/source/ui/docshell/arealink.cxx
+++ b/sc/source/ui/docshell/arealink.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: arealink.cxx,v $
- * $Revision: 1.28 $
+ * $Revision: 1.29 $
*
* This file is part of OpenOffice.org.
*
@@ -323,7 +323,9 @@ BOOL ScAreaLink::Refresh( const String& rNewFile, const String& rNewFilter,
aNewRange.aEnd.SetRow( aNewRange.aStart.Row() + nHeight - 1 );
}
- BOOL bCanDo = pDoc->CanFitBlock( aOldRange, aNewRange ); //! nach bDoInsert unterscheiden
+ //! check CanFitBlock only if bDoInsert is set?
+ BOOL bCanDo = ValidColRow( aNewRange.aEnd.Col(), aNewRange.aEnd.Row() ) &&
+ pDoc->CanFitBlock( aOldRange, aNewRange );
if (bCanDo)
{
ScDocShellModificator aModificator( *pImpl->m_pDocSh );