From 3e6b90800d679f183c3601f33800d9f236f834a3 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 18 May 2012 12:16:06 +0200 Subject: show dottet line if axis is not at zero Change-Id: Ifd1d69a6afe9a0392e08e0f5bb0b1a497e1c2606 --- sc/source/ui/view/output.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index 2f968b743ec6..f0d9827c0659 100644 --- a/sc/source/ui/view/output.cxx +++ b/sc/source/ui/view/output.cxx @@ -49,6 +49,7 @@ #include #include #include +#include #include #include "output.hxx" @@ -832,6 +833,19 @@ void drawDataBars( const ScDataBarInfo* pOldDataBarInfo, OutputDevice* pDev, con //TODO: improve this for gradient fill pDev->SetFillColor(pOldDataBarInfo->maColor); pDev->DrawRect(aPaintRect); + + //draw axis + if(pOldDataBarInfo->mnZero) + { + Point aPoint1(nPosZero, rRect.Top()); + Point aPoint2(nPosZero, rRect.Bottom()); + LineInfo aLineInfo(LINE_DASH, 1); + aLineInfo.SetDashCount( 5 ); + pDev->SetFillColor(COL_BLACK); + pDev->SetLineColor(COL_BLACK); + pDev->DrawLine(aPoint1, aPoint2, aLineInfo); + pDev->SetLineColor(); + } } void drawCells(const Color* pColor, const SvxBrushItem* pBackground, const Color*& pOldColor, const SvxBrushItem*& pOldBackground, -- cgit