summaryrefslogtreecommitdiff
path: root/chart2/source/tools/ExplicitCategoriesProvider.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:25:01 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:19 +0200
commit820fca753b0bfed6078b9cde09430177d6a193ca (patch)
tree1131d7504fd7ade9df9149238d559dc4bc8193a6 /chart2/source/tools/ExplicitCategoriesProvider.cxx
parent3ac5138cfc01c1795ae05963fa4e5a6c7d22f4de (diff)
loplugin:simplifybool
Change-Id: Ie7b1a6c7e60d888e2f070b817d3c34814e5835ae
Diffstat (limited to 'chart2/source/tools/ExplicitCategoriesProvider.cxx')
-rw-r--r--chart2/source/tools/ExplicitCategoriesProvider.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/tools/ExplicitCategoriesProvider.cxx b/chart2/source/tools/ExplicitCategoriesProvider.cxx
index a57607178d75..8684e08fe52a 100644
--- a/chart2/source/tools/ExplicitCategoriesProvider.cxx
+++ b/chart2/source/tools/ExplicitCategoriesProvider.cxx
@@ -449,7 +449,7 @@ bool lcl_fillDateCategories( const uno::Reference< data::XDataSequence >& xDataS
if( bIsAutoDate )
{
if( bOwnData )
- bIsDate = bOwnDataAnddAxisHasAnyFormat ? bOwnDataAnddAxisHasDateFormat : true;
+ bIsDate = !bOwnDataAnddAxisHasAnyFormat || bOwnDataAnddAxisHasDateFormat;
else
bIsDate = DiagramHelper::isDateNumberFormat( xDataSequence->getNumberFormatKeyByIndex( nN ), xNumberFormats );
}