summaryrefslogtreecommitdiff
path: root/sc/source/core/data/documen8.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-28 15:11:55 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-28 15:14:36 +0100
commit4d4ce886672194a76ef1de327c97c484f7a50e51 (patch)
tree67e4e9c8373a2ef575090914a104d8231a26deb8 /sc/source/core/data/documen8.cxx
parenta9b7b4ab6bdec13341c8bdd4b359e5a2f501774c (diff)
prevent some nasty ScRangeList->ScRange->ScRangeList conversion
Change-Id: I9dac82ffeed920ce39aab16d89a91e2f9083908b
Diffstat (limited to 'sc/source/core/data/documen8.cxx')
-rw-r--r--sc/source/core/data/documen8.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index 23d4e8049c99..a8f2ff9a16e0 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -898,6 +898,16 @@ void ScDocument::RepaintRange( const ScRange& rRange )
}
}
+void ScDocument::RepaintRange( const ScRangeList& rRange )
+{
+ if ( bIsVisible && pShell )
+ {
+ ScModelObj* pModel = ScModelObj::getImplementation( pShell->GetModel() );
+ if ( pModel )
+ pModel->RepaintRange( rRange ); // locked repaints are checked there
+ }
+}
+
//------------------------------------------------------------------------
bool ScDocument::IdleCheckLinks() // true = demnaechst wieder versuchen