Kaydet (Commit) 4f6a5040 authored tarafından David Tardon's avatar David Tardon

the depth argument must be >= 0

üst 767098b0
......@@ -26,6 +26,7 @@
*
************************************************************************/
#include <utility>
#include <tools/prex.h>
#include <X11/extensions/Xrender.h>
......@@ -267,7 +268,7 @@ namespace cairo
aSystemGraphicsData.pXRenderFormat = getRenderFormat();
return boost::shared_ptr<VirtualDevice>(
new VirtualDevice( &aSystemGraphicsData, getDepth() ));
new VirtualDevice( &aSystemGraphicsData, std::max( getDepth(), 0 ) ));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment