Make GetClippingBox() work for wxPrinterDC in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 14 Oct 2012 14:55:32 +0000 (14:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 14 Oct 2012 14:55:32 +0000 (14:55 +0000)
commit332afcdb2f49bf30d1c8dd393eb0c3a37c667f26
tree7b5f691d4080851276320ffddd4f7ab73db07b4b
parent4d604ad39743adc74dbac76ef23f4bab21006a51
Make GetClippingBox() work for wxPrinterDC in wxGTK.

GetClippingBox() implementation relies on wxDCImpl::m_clip[XY][12] being
updated in DoSetClippingRegion() but this wasn't done here. Fix this by adding
the code to do this to the base class version of this method and calling it
from wxGtkPrinterDCImpl.

Also, refactor wxGCDCImpl to reuse the same code instead of duplicating it.

Closes #14697.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/dc.h
src/common/dcbase.cpp
src/common/dcgraph.cpp
src/gtk/print.cpp