]> git.saurik.com Git - wxWidgets.git/commitdiff
keep the owning window
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 22 Dec 2007 09:25:37 +0000 (09:25 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 22 Dec 2007 09:25:37 +0000 (09:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcgraph.cpp

index c945600de4d85326ff1057b48bb80137d4ce250b..d39eec32171f462220c210b550dd51f01f9d1ce1 100644 (file)
@@ -114,6 +114,7 @@ wxGCDCImpl::wxGCDCImpl( wxDC *owner, const wxWindowDC& dc ) :
 {
     Init();
     SetGraphicsContext( wxGraphicsContext::Create(dc) );
+    m_window = dc.GetWindow();
 }
 
 wxGCDCImpl::wxGCDCImpl( wxDC *owner, const wxMemoryDC& dc ) :