projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added translation of mac system into language, adaption of search paths
[wxWidgets.git]
/
src
/
gtk
/
dcmemory.cpp
diff --git
a/src/gtk/dcmemory.cpp
b/src/gtk/dcmemory.cpp
index 27dd0e8e9d531d44ebde4e5f1da27bddabe10d28..a1e0c244522876fd6e6ce37b46803511e5f8f31a 100644
(file)
--- a/
src/gtk/dcmemory.cpp
+++ b/
src/gtk/dcmemory.cpp
@@
-43,6
+43,7
@@
wxMemoryDC::~wxMemoryDC()
void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
{
void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
{
+ Destroy();
m_selected = bitmap;
if (m_selected.Ok())
{
m_selected = bitmap;
if (m_selected.Ok())
{
@@
-55,9
+56,9
@@
void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
m_window = m_selected.GetBitmap();
}
m_window = m_selected.GetBitmap();
}
- SetUpDC();
-
m_isMemDC = TRUE;
m_isMemDC = TRUE;
+
+ SetUpDC();
}
else
{
}
else
{