summaryrefslogtreecommitdiff
path: root/sc/source/ui/cctrl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-12-30 21:19:04 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-12-30 21:19:04 +0100
commit2fbd64cef870568da1479a03f6ea778bab68a09b (patch)
tree244cd640702a2af5525b85f674f33fbb26d8f6db /sc/source/ui/cctrl
parente4cb67b4dabe40fdf8ce703d6739db7863c52fb4 (diff)
More cppcheck cleaning in sc
Change-Id: Ie040fa7ed9a3304bd4a10e404b7a0a4e45cbd69c
Diffstat (limited to 'sc/source/ui/cctrl')
-rw-r--r--sc/source/ui/cctrl/dpcontrol.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/cctrl/dpcontrol.cxx b/sc/source/ui/cctrl/dpcontrol.cxx
index c866dedf3ce1..ab583cb3d5d0 100644
--- a/sc/source/ui/cctrl/dpcontrol.cxx
+++ b/sc/source/ui/cctrl/dpcontrol.cxx
@@ -97,7 +97,6 @@ void ScDPFieldButton::setPopupLeft(bool b)
void ScDPFieldButton::draw()
{
- const long nMargin = 2;
bool bOldMapEnablaed = mpOutDev->IsMapModeEnabled();
mpOutDev->EnableMapMode(false);
@@ -136,7 +135,7 @@ void ScDPFieldButton::draw()
Point aTextPos = maPos;
long nTHeight = mpOutDev->GetTextHeight();
- aTextPos.setX(maPos.getX() + nMargin);
+ aTextPos.setX(maPos.getX() + 2); // 2 = Margin
aTextPos.setY(maPos.getY() + (maSize.Height()-nTHeight)/2);
mpOutDev->Push(PUSH_CLIPREGION);