]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/prntbase.cpp
reverting part of r58797, otherwise wxClientDC get no graphics context at all
[wxWidgets.git] / src / common / prntbase.cpp
index be09647180a7b19a232c562b0a3fcaa2b7f0c4c0..ff67a1f4a0ea9e6b82b0affddffc6c1978c4b7b5 100644 (file)
@@ -32,6 +32,7 @@
     #include "wx/layout.h"
     #include "wx/choice.h"
     #include "wx/button.h"
+    #include "wx/bmpbuttn.h"
     #include "wx/settings.h"
     #include "wx/dcmemory.h"
     #include "wx/dcclient.h"
@@ -1658,8 +1659,8 @@ void wxPrintPreviewBase::Init(wxPrintout *printout,
     m_previewFailed = false;
     m_currentPage = 1;
     m_currentZoom = 70;
-    m_topMargin = 40;
-    m_leftMargin = 40;
+    m_topMargin =
+    m_leftMargin = 2*wxSizerFlags::GetDefaultBorder();
     m_pageWidth = 0;
     m_pageHeight = 0;
     m_printingPrepared = false;