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:32:29 +0000
commit5e3437c5c12166bb0be40c985db85f6e639a9d61 (patch)
tree0d5e1e2310dce0a3c8dca012947dcf4a89288ab7
parent67d36215a3b846513335f69a83cb941cc5dcdc11 (diff)
fdo#74519 - don't drag around and use an uninitialized variable.
Change-Id: I08b43a6658a600398b434a0c90e0e16863402b33 Reviewed-on: https://gerrit.libreoffice.org/7856 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 befb74683886..9ca5ab2549bf 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