[Libreoffice-commits] .: Branch 'libreoffice-3-4' - extensions/source
Michael Meeks
michael at kemper.freedesktop.org
Tue Feb 14 03:15:43 PST 2012
extensions/source/abpilot/typeselectionpage.cxx | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
New commits:
commit e5bbb64626106bdfceea47b7b7c580172d5ae420
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date: Mon Feb 13 17:36:23 2012 +0100
fdo#43399 hidden radio button should also gets unset
Signed-off-by: Michael Meeks <michael.meeks at suse.com>
diff --git a/extensions/source/abpilot/typeselectionpage.cxx b/extensions/source/abpilot/typeselectionpage.cxx
index f78878f..020e3a0 100644
--- a/extensions/source/abpilot/typeselectionpage.cxx
+++ b/extensions/source/abpilot/typeselectionpage.cxx
@@ -112,9 +112,13 @@ namespace abp
m_aAllTypes.push_back( ButtonItem( &m_aOE, AST_OE, bWithMozilla && !bUnx ) );
m_aAllTypes.push_back( ButtonItem( &m_aOther, AST_OTHER, true ) );
- bool bFirstVisible = true;
Link aTypeSelectionHandler = LINK(this, TypeSelectionPage, OnTypeSelected );
const Size aSpacing( LogicToPixel( Size( 0, 3 ), MAP_APPFONT ) );
+ if ( ! m_aAllTypes.empty() )
+ {
+ ButtonItem aItem = m_aAllTypes[0];
+ aItem.m_pItem->SetStyle( aItem.m_pItem->GetStyle() | WB_GROUP );
+ }
for ( ::std::vector< ButtonItem >::const_iterator loop = m_aAllTypes.begin();
loop != m_aAllTypes.end(); ++loop )
{
@@ -127,12 +131,6 @@ namespace abp
aTopLeft.Y() += aItemSize.Height() + aSpacing.Height();
aItem.m_pItem->SetClickHdl( aTypeSelectionHandler );
aItem.m_pItem->Show();
-
- if ( bFirstVisible )
- {
- aItem.m_pItem->SetStyle( aItem.m_pItem->GetStyle() | WB_GROUP );
- bFirstVisible = false;
- }
}
}
}
More information about the Libreoffice-commits
mailing list