fix tests for valid pen and brush, broken in r73099
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2516,7 +2516,7 @@ wxGraphicsPen wxCairoRenderer::CreatePen(const wxPen& pen)
|
||||
{
|
||||
wxGraphicsPen p;
|
||||
ENSURE_LOADED_OR_RETURN(p);
|
||||
if (pen.IsOk() && pen.GetStyle() == wxPENSTYLE_TRANSPARENT)
|
||||
if (pen.IsOk() && pen.GetStyle() != wxPENSTYLE_TRANSPARENT)
|
||||
{
|
||||
p.SetRefData(new wxCairoPenData( this, pen ));
|
||||
}
|
||||
@@ -2527,7 +2527,7 @@ wxGraphicsBrush wxCairoRenderer::CreateBrush(const wxBrush& brush )
|
||||
{
|
||||
wxGraphicsBrush p;
|
||||
ENSURE_LOADED_OR_RETURN(p);
|
||||
if (brush.IsOk() && brush.GetStyle() == wxBRUSHSTYLE_TRANSPARENT)
|
||||
if (brush.IsOk() && brush.GetStyle() != wxBRUSHSTYLE_TRANSPARENT)
|
||||
{
|
||||
p.SetRefData(new wxCairoBrushData( this, brush ));
|
||||
}
|
||||
|
Reference in New Issue
Block a user