summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-02-04 18:17:11 +0100
committerAhmad Harthi <aalharthi@kacst.edu.sa>2014-02-04 17:31:55 +0000
commit7a3cac33e82a65cabae81e5bf8969c5c5853b3b2 (patch)
treecdc13a241fb1f06aeddf05da70ebfca965f93b01
parent7309663f1c4dcc665e966c3a77cfa687bcc354c2 (diff)
fdo#74519 - don't drag around and use an uninitialized variable.
Change-Id: I08b43a6658a600398b434a0c90e0e16863402b33 Reviewed-on: https://gerrit.libreoffice.org/7857 Reviewed-by: Ahmad Harthi <aalharthi@kacst.edu.sa> Tested-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
-rw-r--r--sd/source/ui/dlg/PaneDockingWindow.cxx2
-rw-r--r--sd/source/ui/inc/PaneDockingWindow.hxx5
2 files changed, 1 insertions, 6 deletions
diff --git a/sd/source/ui/dlg/PaneDockingWindow.cxx b/sd/source/ui/dlg/PaneDockingWindow.cxx
index fb8169102d32..9136af906e1f 100644
--- a/sd/source/ui/dlg/PaneDockingWindow.cxx
+++ b/sd/source/ui/dlg/PaneDockingWindow.cxx
@@ -109,7 +109,7 @@ void PaneDockingWindow::SetValidSizeRange (const Range aValidSizeRange)
// to compensate the valid size range for that.
const SvBorder aBorder (GetDecorationBorder());
sal_Int32 nCompensation (pSplitWindow->IsHorizontal()
- ? mnTitleBarHeight + aBorder.Top() + aBorder.Bottom()
+ ? aBorder.Top() + aBorder.Bottom()
: aBorder.Left() + aBorder.Right());
pSplitWindow->SetItemSizeRange(
nSetId,
diff --git a/sd/source/ui/inc/PaneDockingWindow.hxx b/sd/source/ui/inc/PaneDockingWindow.hxx
index 7975225061de..5a8fc8d2db41 100644
--- a/sd/source/ui/inc/PaneDockingWindow.hxx
+++ b/sd/source/ui/inc/PaneDockingWindow.hxx
@@ -69,11 +69,6 @@ public:
Otherwise UnknownOrientation is returned.
*/
Orientation GetOrientation (void) const;
-
- /** The current height of the title bar.
- */
- sal_Int32 mnTitleBarHeight;
-
};
} // end of namespace ::sd