summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx3
-rw-r--r--chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx3
-rw-r--r--chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx3
-rw-r--r--chart2/source/controller/itemsetwrapper/TitleItemConverter.cxx3
4 files changed, 4 insertions, 8 deletions
diff --git a/chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx b/chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx
index 0c2efa7fb1ad..a56579c480d7 100644
--- a/chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx
@@ -885,8 +885,7 @@ bool AxisItemConverter::ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSet
bool bPropExisted =
( GetPropertySet()->getPropertyValue( "TextRotation" ) >>= fOldVal );
- if( ! bPropExisted ||
- ( bPropExisted && fOldVal != fVal ))
+ if( ! bPropExisted || fOldVal != fVal )
{
GetPropertySet()->setPropertyValue( "TextRotation" , uno::makeAny( fVal ));
bChangedOtherwise = true;
diff --git a/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx b/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx
index 74ebe3b0c714..67f865cb4d62 100644
--- a/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx
@@ -505,8 +505,7 @@ bool DataPointItemConverter::ApplySpecialItem(
bool bPropExisted =
( GetPropertySet()->getPropertyValue( "TextRotation" ) >>= fOldValue );
- if( ! bPropExisted ||
- ( bPropExisted && fOldValue != fValue ))
+ if( ! bPropExisted || fOldValue != fValue )
{
GetPropertySet()->setPropertyValue( "TextRotation" , uno::makeAny( fValue ));
bChanged = true;
diff --git a/chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx b/chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx
index fe94df3f3dc2..05bc7fa9c5b3 100644
--- a/chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx
@@ -459,8 +459,7 @@ bool TextLabelItemConverter::ApplySpecialItem( sal_uInt16 nWhichId, const SfxIte
bool bPropExisted =
(GetPropertySet()->getPropertyValue("TextRotation") >>= fOldValue);
- if (!bPropExisted ||
- (bPropExisted && fOldValue != fValue))
+ if (!bPropExisted || fOldValue != fValue)
{
GetPropertySet()->setPropertyValue("TextRotation", uno::makeAny(fValue));
bChanged = true;
diff --git a/chart2/source/controller/itemsetwrapper/TitleItemConverter.cxx b/chart2/source/controller/itemsetwrapper/TitleItemConverter.cxx
index 613193b9af95..8750cd1d5b77 100644
--- a/chart2/source/controller/itemsetwrapper/TitleItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/TitleItemConverter.cxx
@@ -186,8 +186,7 @@ bool TitleItemConverter::ApplySpecialItem(
bool bPropExisted =
( GetPropertySet()->getPropertyValue( "TextRotation" ) >>= fOldVal );
- if( ! bPropExisted ||
- ( bPropExisted && fOldVal != fVal ))
+ if( ! bPropExisted || fOldVal != fVal )
{
GetPropertySet()->setPropertyValue( "TextRotation" , uno::makeAny( fVal ));
bChanged = true;