From 0d4d89b6687fe7c735b22e56175abd2de2133798 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 26 May 2015 16:59:15 +0100 Subject: Related: tdf#91542 line box width cannot be changed Change-Id: Ibbeefcff785ee76a1a7ce46d98c1006fc8fe46fc (cherry picked from commit 2efb9d3c9841397cca3a66714504ee25d2120bd2) --- svx/source/sidebar/line/LineWidthControl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svx/source/sidebar/line/LineWidthControl.cxx b/svx/source/sidebar/line/LineWidthControl.cxx index 6723f6b1286f..2ee411ca4c82 100644 --- a/svx/source/sidebar/line/LineWidthControl.cxx +++ b/svx/source/sidebar/line/LineWidthControl.cxx @@ -263,7 +263,7 @@ void LineWidthControl::SetWidthSelect( long lValue, bool bValuable, SfxMapUnit e IMPL_LINK(LineWidthControl, VSSelectHdl, void *, pControl) { - if (pControl == &maVSWidth) + if (pControl == maVSWidth.get()) { sal_uInt16 iPos = maVSWidth->GetSelectItemId(); if (iPos >= 1 && iPos <= 8) @@ -308,7 +308,7 @@ IMPL_LINK(LineWidthControl, VSSelectHdl, void *, pControl) IMPL_LINK(LineWidthControl, MFModifyHdl, void *, pControl) { - if(pControl == &maMFWidth) + if (pControl == maMFWidth.get()) { if(maVSWidth->GetSelItem()) { -- cgit v1.2.3