projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handler when the cases when the MGL timer wraps
[wxWidgets.git]
/
src
/
x11
/
colour.cpp
diff --git
a/src/x11/colour.cpp
b/src/x11/colour.cpp
index b334a9b931d4e41aa879903634a204052b3d4163..a9c177d209bba30e9ef2623ecec701b03c4f9f02 100644
(file)
--- a/
src/x11/colour.cpp
+++ b/
src/x11/colour.cpp
@@
-93,8
+93,9
@@
void wxColourRefData::FreeColour()
if (!m_colormap)
return;
#if !wxUSE_NANOX
if (!m_colormap)
return;
#if !wxUSE_NANOX
- if ((wxTheApp->m_visualInfo->m_visualType == GrayScale) ||
- (wxTheApp->m_visualInfo->m_visualType == PseudoColor))
+ if ( wxTheApp &&
+ (wxTheApp->m_visualInfo->m_visualType == GrayScale ||
+ wxTheApp->m_visualInfo->m_visualType == PseudoColor) )
{
int idx = m_color.pixel;
colMapAllocCounter[ idx ] = colMapAllocCounter[ idx ] - 1;
{
int idx = m_color.pixel;
colMapAllocCounter[ idx ] = colMapAllocCounter[ idx ] - 1;
@@
-231,7
+232,6
@@
void wxColour::Set( unsigned char red, unsigned char green, unsigned char blue )
{
AllocExclusive();
{
AllocExclusive();
- m_refData = new wxColourRefData();
#if wxUSE_NANOX
M_COLDATA->m_color.red = ((unsigned short)red) ;
M_COLDATA->m_color.green = ((unsigned short)green) ;
#if wxUSE_NANOX
M_COLDATA->m_color.red = ((unsigned short)red) ;
M_COLDATA->m_color.green = ((unsigned short)green) ;