summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/shapeuno.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-01-30 19:00:51 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-31 01:21:21 +0000
commit2fe174915f7f2f58dbd800b961ecfd1a3bec01d4 (patch)
tree806a7e8d391f9aeb27218874eaa094e63776c542 /sc/source/ui/unoobj/shapeuno.cxx
parent92346fb7714ca7c6a467771d8a8b01305c1b17d1 (diff)
fdo#74194 Revert "Resolves: #i121136# Improve Spreadsheet performance ..."
This reverts commit 6a62557d8632290ae7150f3922dece65f51af4bc. pPageRows[] is a member array, so when not allocating MAXROWCOUNT entries but nRealCnt instead it also needs some tracking mechanism to reallocate in case a subsequent call needs more elements than the first call. Change-Id: Iadb7d2ceadcb8bd99d57c6188571d295c6b99fba (cherry picked from commit 41a859234eac6126693393ff64efc7bfcdec9c54) Reviewed-on: https://gerrit.libreoffice.org/7751 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/ui/unoobj/shapeuno.cxx')
-rw-r--r--sc/source/ui/unoobj/shapeuno.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx
index 2b71b12f1be5..53e32aa71ae8 100644
--- a/sc/source/ui/unoobj/shapeuno.cxx
+++ b/sc/source/ui/unoobj/shapeuno.cxx
@@ -841,8 +841,7 @@ uno::Any SAL_CALL ScShapeObj::getPropertyValue( const OUString& aPropertyName )
}
else
{
- if(!pShapePropertySet) //performance consideration
- GetShapePropertySet();
+ GetShapePropertySet();
if (pShapePropertySet)
aAny = pShapePropertySet->getPropertyValue( aPropertyName );
}