Patch level : 4.0
Files correlati : xvaga.dll Ricompilazione Demo : [ ] Commento : Migliorata chiusura stampanti moderne. A volte provocava il mancato aggiornamento del flag di stamapo sui documenti. git-svn-id: svn://10.65.10.50/trunk@14375 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
058332cd99
commit
b9b3adc9c4
@ -132,7 +132,10 @@ void TwxPrintOut::ResetDC()
|
||||
{
|
||||
wxDC* dc = GetDC();
|
||||
if (dc != NULL)
|
||||
{
|
||||
delete dc;
|
||||
SetDC(NULL);
|
||||
}
|
||||
}
|
||||
|
||||
#if wxCHECK_VERSION(2,6,1)
|
||||
@ -237,7 +240,7 @@ void TwxPrintOut::InitDC(const TPRINT_RCD* prcd, const char* title)
|
||||
|
||||
wxSize s = dc->GetPPI();
|
||||
if (s.x >0)
|
||||
SetPPIPrinter(s.x, s.y);
|
||||
SetPPIPrinter(s.x, s.y);
|
||||
|
||||
s = dc->GetSize();
|
||||
if (s.x > 0)
|
||||
@ -281,8 +284,8 @@ public:
|
||||
bool Locked() const { return m_bLocked; }
|
||||
bool Printing() const { return Ok() && Locked(); }
|
||||
|
||||
TwxPrintOutCache() : m_signature(0), m_po(NULL) { }
|
||||
~TwxPrintOutCache() { Reset(); }
|
||||
TwxPrintOutCache();
|
||||
~TwxPrintOutCache();
|
||||
} m_PrintoutCache;
|
||||
|
||||
unsigned long TwxPrintOutCache::Signature(const TPRINT_RCD* prcd) const
|
||||
@ -336,6 +339,15 @@ TwxPrintOut& TwxPrintOutCache::Get(const TPRINT_RCD* prcd)
|
||||
return *m_po;
|
||||
}
|
||||
|
||||
TwxPrintOutCache::TwxPrintOutCache() : m_signature(0), m_po(NULL)
|
||||
{ }
|
||||
|
||||
TwxPrintOutCache::~TwxPrintOutCache()
|
||||
{
|
||||
// Reset(); // Essendo un oggetto statico la delete m_po non funziona!
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
// TPrintDC
|
||||
///////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user