summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-08-15 11:12:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-08-15 11:15:20 +0100
commit03569dc7d38e4edf3f3e50f7dff3252116c28ab1 (patch)
treebc416ace4c7324580c4e7132bc8f0ef1502123c4 /svtools
parent45f8271f2f0d3df8ffcaf4af00f2554a57c08bef (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.cxx8
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;
}
//