diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-15 11:12:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-15 11:15:20 +0100 |
commit | 03569dc7d38e4edf3f3e50f7dff3252116c28ab1 (patch) | |
tree | bc416ace4c7324580c4e7132bc8f0ef1502123c4 /svtools | |
parent | 45f8271f2f0d3df8ffcaf4af00f2554a57c08bef (diff) |
I hate the positioning of the expander checkitem in hierarchical view
this code is nigh unreadable, so hard to know if there are side-effects
but it definitely to my mind looks better in styles and formatting
and the case with an additional bitmap e.g. macros->organize remains
visually unchanged, so seems ok
Change-Id: I52ef7768ef30f9eb253ac9e7c56cac62549d4905
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 7203117e2c71..275706f58950 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -1602,12 +1602,8 @@ void SvImpLBox::SetNodeBmpYOffset( const Image& rBmp ) void SvImpLBox::SetNodeBmpTabDistance() { nNodeBmpTabDistance = -pView->GetIndent(); - if( pView->nContextBmpWidthMax ) - { - // only if the first dynamic tab is centered (we currently assume that) - Size aSize = GetExpandedNodeBmp().GetSizePixel(); - nNodeBmpTabDistance -= aSize.Width() / 2; - } + Size aSize = GetExpandedNodeBmp().GetSizePixel(); + nNodeBmpTabDistance -= aSize.Width() / 2; } // |