don't assign NULLs to bools and floats, this is confusing (and also the usual: deTABified; corrected double to int cast)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-30 23:22:42 +00:00
parent 8a438f46b5
commit 783d8bdf57

View File

@@ -433,7 +433,7 @@ void wxMacCoreGraphicsPenData::Init()
{
m_lengths = NULL;
m_userLengths = NULL;
m_width = NULL;
m_width = 0;
m_count = 0;
m_patternColorComponents = NULL;
m_isPattern = false;
@@ -1126,7 +1126,7 @@ public:
int penwidth = 0 ;
if ( !m_pen.IsNull() )
{
penwidth = ((wxMacCoreGraphicsPenData*)m_pen.GetRefData())->GetWidth();
penwidth = (int)((wxMacCoreGraphicsPenData*)m_pen.GetRefData())->GetWidth();
if ( penwidth == 0 )
penwidth = 1;
}
@@ -1434,7 +1434,7 @@ void wxMacCoreGraphicsContext::SetNativeContext( CGContextRef cg )
CGContextRetain(m_cgContext);
CGContextSaveGState( m_cgContext );
CGContextSaveGState( m_cgContext );
m_releaseContext = NULL;
m_releaseContext = false;
}
}