[Libreoffice-commits] core.git: svx/source
Pedro Giffuni
pfg at apache.org
Mon Jun 16 01:32:38 PDT 2014
svx/source/sidebar/line/LineWidthControl.cxx | 27 ++++-----------------------
svx/source/sidebar/line/LineWidthControl.hxx | 4 ++--
2 files changed, 6 insertions(+), 25 deletions(-)
New commits:
commit a41e5ef986377d9bacf8cd317b60cf9b9e2cdd2a
Author: Pedro Giffuni <pfg at apache.org>
Date: Mon Jun 16 03:07:14 2014 +0000
Sidebar: fix some typos in function naming.
Mostly found by: Noel Grandin
Reviewed by: Andre Fischer
(cherry picked from commit 1ad216c0b831fc10ff4e73392dbcc9832463a7bc)
Conflicts:
svx/source/sidebar/line/LineWidthControl.cxx
svx/source/sidebar/line/LineWidthControl.hxx
Change-Id: I662a262d2cd920b54338c16bf688181b95e2f863
diff --git a/svx/source/sidebar/line/LineWidthControl.cxx b/svx/source/sidebar/line/LineWidthControl.cxx
index a16e59e..3483d3a 100644
--- a/svx/source/sidebar/line/LineWidthControl.cxx
+++ b/svx/source/sidebar/line/LineWidthControl.cxx
@@ -51,7 +51,7 @@ LineWidthControl::LineWidthControl (
mnCustomWidth(0),
mbCustom(false),
mbCloseByEdit(false),
- mnTmpCusomWidth(0),
+ mnTmpCustomWidth(0),
mbVSFocus(true),
maIMGCus(SVX_RES(IMG_WIDTH_CUSTOM)),
maIMGCusGray(SVX_RES(IMG_WIDTH_CUSTOM_GRAY))
@@ -278,7 +278,7 @@ IMPL_LINK(LineWidthControl, VSSelectHdl, void *, pControl)
mrLinePropertyPanel.SetWidthIcon(iPos);
mrLinePropertyPanel.SetWidth(nVal);
mbCloseByEdit = false;
- mnTmpCusomWidth = 0;
+ mnTmpCustomWidth = 0;
}
else if(iPos == 9)
{//last custom
@@ -291,7 +291,7 @@ IMPL_LINK(LineWidthControl, VSSelectHdl, void *, pControl)
mpBindings->GetDispatcher()->Execute(SID_ATTR_LINE_WIDTH, SFX_CALLMODE_RECORD, &aWidthItem, 0L);
mrLinePropertyPanel.SetWidth(nVal);
mbCloseByEdit = false;
- mnTmpCusomWidth = 0;
+ mnTmpCustomWidth = 0;
}
else
{
@@ -329,30 +329,11 @@ IMPL_LINK(LineWidthControl, MFModifyHdl, void *, pControl)
mpBindings->GetDispatcher()->Execute(SID_ATTR_LINE_WIDTH, SFX_CALLMODE_RECORD, &aWidthItem, 0L);
mbCloseByEdit = true;
- mnTmpCusomWidth = nTmp;
- /*for(sal_uInt16 i = 0; i < 8; i++)
- {
- if(nTmp == (sal_Int32)maVSWidth.GetItemData(i))
- {
- mbCloseByEdit = false;
- break;
- }
- }*/
-
+ mnTmpCustomWidth = nTmp;
}
return( 0L );
}
-
-
-
-
-
-
-
-
-
-
} } // end of namespace svx::sidebar
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/source/sidebar/line/LineWidthControl.hxx b/svx/source/sidebar/line/LineWidthControl.hxx
index 6053edb..7e06a6b 100644
--- a/svx/source/sidebar/line/LineWidthControl.hxx
+++ b/svx/source/sidebar/line/LineWidthControl.hxx
@@ -44,7 +44,7 @@ public:
void SetWidthSelect( long lValue, bool bValuable, SfxMapUnit eMapUnit);
bool IsCloseByEdit() { return mbCloseByEdit;}
- long GetTmpCustomWidth() { return mnTmpCusomWidth;}
+ long GetTmpCustomWidth() { return mnTmpCustomWidth;}
private:
LinePropertyPanel& mrLinePropertyPanel;
@@ -59,7 +59,7 @@ private:
long mnCustomWidth;
bool mbCustom;
bool mbCloseByEdit;
- long mnTmpCusomWidth;
+ long mnTmpCustomWidth;
bool mbVSFocus;
Image maIMGCus;
More information about the Libreoffice-commits
mailing list