projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed Printf() format spec warnings
[wxWidgets.git]
/
src
/
univ
/
checkbox.cpp
diff --git
a/src/univ/checkbox.cpp
b/src/univ/checkbox.cpp
index 295756acd0d7a1f944a98027b02a44862943c8e8..c9a95a631868adeba3d47b40db4700e5ae5f7322 100644
(file)
--- a/
src/univ/checkbox.cpp
+++ b/
src/univ/checkbox.cpp
@@
-154,10
+154,12
@@
void wxCheckBox::DoDraw(wxControlRenderer *renderer)
if ( m_status == Status_Checked )
flags |= wxCONTROL_CHECKED;
if ( m_status == Status_Checked )
flags |= wxCONTROL_CHECKED;
+ wxBitmap bitmap(GetBitmap(GetState(flags), m_status));
+
renderer->GetRenderer()->
DrawCheckButton(dc,
GetLabel(),
renderer->GetRenderer()->
DrawCheckButton(dc,
GetLabel(),
-
GetBitmap(GetState(flags), m_status)
,
+
bitmap
,
renderer->GetRect(),
flags,
GetWindowStyle() & wxALIGN_RIGHT ? wxALIGN_RIGHT
renderer->GetRect(),
flags,
GetWindowStyle() & wxALIGN_RIGHT ? wxALIGN_RIGHT