don't use the bitmaps in toolbars with wxTB_NOICONS style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -379,6 +379,8 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
|
||||
size_t posGtk = m_xMargin > 1 ? pos + 1 : pos;
|
||||
|
||||
if ( tool->IsButton() )
|
||||
{
|
||||
if ( !HasFlag(wxTB_NOICONS) )
|
||||
{
|
||||
wxBitmap bitmap = tool->GetNormalBitmap();
|
||||
|
||||
@@ -406,6 +408,7 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
|
||||
|
||||
tool->m_pixmap = tool_pixmap;
|
||||
}
|
||||
}
|
||||
|
||||
switch ( tool->GetStyle() )
|
||||
{
|
||||
|
@@ -379,6 +379,8 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
|
||||
size_t posGtk = m_xMargin > 1 ? pos + 1 : pos;
|
||||
|
||||
if ( tool->IsButton() )
|
||||
{
|
||||
if ( !HasFlag(wxTB_NOICONS) )
|
||||
{
|
||||
wxBitmap bitmap = tool->GetNormalBitmap();
|
||||
|
||||
@@ -406,6 +408,7 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
|
||||
|
||||
tool->m_pixmap = tool_pixmap;
|
||||
}
|
||||
}
|
||||
|
||||
switch ( tool->GetStyle() )
|
||||
{
|
||||
|
Reference in New Issue
Block a user