summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-17 22:57:35 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-17 23:57:23 +0100
commit2f0bc524daf8ed27a8f9fbb2cdb31460d5be077d (patch)
tree357f071993bb37eef660db8c2aeec92436f9927d /sc
parenta8406aa3e0225989d57b185958b0c43b1304ec4a (diff)
workaround FORMULA is not part of the condition is in the UI
Change-Id: I6c51ecfbddeeaed3f8747cde90996f7e236a0afd
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/condformat/condformathelper.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/condformat/condformathelper.cxx b/sc/source/ui/condformat/condformathelper.cxx
index 67a175dfb837..b5949108ed84 100644
--- a/sc/source/ui/condformat/condformathelper.cxx
+++ b/sc/source/ui/condformat/condformathelper.cxx
@@ -153,6 +153,10 @@ rtl::OUString ScCondFormatHelper::GetExpression( ScCondFormatEntryType eType, sa
aBuffer.append(rtl::OUString(" "));
if(eType == CONDITION)
{
+ // workaround missing FORMULA option in the conditions case
+ // FORMULA is handled later
+ if(nIndex > 9)
+ ++nIndex;
aBuffer.append(getExpression(nIndex));
if(nIndex <= 7 || nIndex >= 19)
{