Kaydet (Commit) 69e4dd12 authored tarafından Michael Meeks's avatar Michael Meeks

basebmp: B2IRange::isEmpty is surprisingly, unhelpfully lame - workaround

üst a53082c7
......@@ -1343,6 +1343,10 @@ namespace
if( aLocalSourceArea.isEmpty() )
return false;
// isEmpty is not what we want I think ...
if( aLocalSourceArea.getWidth() <= 0 || aLocalSourceArea.getHeight() <= 0 )
return false;
// calc relative new source area points (relative to orig
// source area)
const ::basegfx::B2IVector aUpperLeftOffset(
......@@ -1359,6 +1363,10 @@ namespace
if( aLocalDestArea.isEmpty() )
return false;
// isEmpty is not what we want I think ...
if( aLocalDestArea.getWidth() <= 0 || aLocalDestArea.getHeight() <= 0 )
return false;
// calc relative new dest area points (relative to orig
// source area)
const ::basegfx::B2IVector aDestUpperLeftOffset(
......@@ -1398,6 +1406,10 @@ namespace
if( aLocalSourceArea.isEmpty() )
return false;
// sadly isEmpty is not what we want I think ...
if( aLocalSourceArea.getWidth() <= 0 || aLocalSourceArea.getHeight() <= 0 )
return false;
// calc relative new source area points (relative to orig
// source area)
const ::basegfx::B2IVector aUpperLeftOffset(
......@@ -1416,6 +1428,10 @@ namespace
if( aLocalDestArea.isEmpty() )
return false;
// isEmpty is not what we want I think ...
if( aLocalDestArea.getWidth() <= 0 || aLocalDestArea.getHeight() <= 0 )
return false;
// calc relative new dest area points (relative to orig
// source area)
const ::basegfx::B2IVector aDestUpperLeftOffset(
......
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