[Libreoffice-commits] core.git: svtools/source
Jochen Nitschke
j.nitschke+logerrit at ok.de
Sun Aug 20 18:47:34 UTC 2017
svtools/source/contnr/svimpbox.cxx | 6 +++---
svtools/source/inc/svimpbox.hxx | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
New commits:
commit 42009698f2ca23ea1527f0696662fbf4c23f2b84
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date: Sat Aug 19 08:19:08 2017 +0200
svtools: rename function to match it's effect.
nYoffsNodeBmp went with
commit 9e61a951374a3f7705de67295e406e929c603a42
Date: Tue Jun 20 15:59:42 2017 +0200
loplugin:unusedfields in svtools
Change-Id: I959829c64242b2d021497f828e24bb23119d8e24
Reviewed-on: https://gerrit.libreoffice.org/41363
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index 1a13a08dfbed..f849ee96a8c6 100644
--- a/svtools/source/contnr/svimpbox.cxx
+++ b/svtools/source/contnr/svimpbox.cxx
@@ -1457,8 +1457,8 @@ long SvImpLBox::GetEntryLine( SvTreeListEntry* pEntry ) const
void SvImpLBox::SetEntryHeight()
{
- SetNodeBmpYOffset( GetExpandedNodeBmp() );
- SetNodeBmpYOffset( GetCollapsedNodeBmp() );
+ SetNodeBmpWidth( GetExpandedNodeBmp() );
+ SetNodeBmpWidth( GetCollapsedNodeBmp() );
if(!pView->HasViewData()) // are we within the Clear?
{
Size aSize = pView->Control::GetOutputSizePixel();
@@ -1565,7 +1565,7 @@ void SvImpLBox::CollapsingEntry( SvTreeListEntry* pEntry )
}
-void SvImpLBox::SetNodeBmpYOffset( const Image& rBmp )
+void SvImpLBox::SetNodeBmpWidth( const Image& rBmp )
{
const Size aSize( rBmp.GetSizePixel() );
nNodeBmpWidth = aSize.Width();
diff --git a/svtools/source/inc/svimpbox.hxx b/svtools/source/inc/svimpbox.hxx
index 09d896ba8135..10d8287d4fdb 100644
--- a/svtools/source/inc/svimpbox.hxx
+++ b/svtools/source/inc/svimpbox.hxx
@@ -161,7 +161,7 @@ private:
DECL_LINK( ScrollLeftRightHdl, ScrollBar*, void );
DECL_LINK( EndScrollHdl, ScrollBar*, void );
- void SetNodeBmpYOffset( const Image& );
+ void SetNodeBmpWidth( const Image& );
void SetNodeBmpTabDistance();
// Selection-Engine
@@ -346,13 +346,13 @@ inline Image& SvImpLBox::implGetImageLocation( const ImageType _eType )
inline void SvImpLBox::SetExpandedNodeBmp( const Image& rImg )
{
implGetImageLocation( ImageType::NodeExpanded ) = rImg;
- SetNodeBmpYOffset( rImg );
+ SetNodeBmpWidth( rImg );
}
inline void SvImpLBox::SetCollapsedNodeBmp( const Image& rImg )
{
implGetImageLocation( ImageType::NodeCollapsed ) = rImg;
- SetNodeBmpYOffset( rImg );
+ SetNodeBmpWidth( rImg );
}
inline const Image& SvImpLBox::GetDontKnowNodeBmp( )
More information about the Libreoffice-commits
mailing list