X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=libctgraphics%2Fsgp.cpp;h=feedcbbf9b699fcff549f2320dc079ba24ddef3c;hb=0219ede69e1c3afc6e160b8f276bfd4617acbc08;hp=21aa0a650f3e4d24c8f20f7846c4c9c2198b1be9;hpb=e8462f7431582627e44906239077f1c696eefba1;p=ctsim.git diff --git a/libctgraphics/sgp.cpp b/libctgraphics/sgp.cpp index 21aa0a6..feedcbb 100644 --- a/libctgraphics/sgp.cpp +++ b/libctgraphics/sgp.cpp @@ -359,7 +359,7 @@ SGP::setRasterOp (int ro) { #if HAVE_WXWINDOWS if (m_driver.isWX()) { - wxRasterOperationMode wxFxn = wxSET; + wxRasterOperationMode wxFxn; switch (ro) { case RO_AND: wxFxn = wxAND; @@ -409,6 +409,8 @@ SGP::setRasterOp (int ro) case RO_XOR: wxFxn = wxXOR; break; + default: + return; } m_driver.idWX()->SetLogicalFunction (wxFxn); }