diff options
author | thb <thb@openoffice.org> | 2010-02-19 01:13:34 +0100 |
---|---|---|
committer | thb <thb@openoffice.org> | 2010-02-19 01:13:34 +0100 |
commit | b76532e1fbc6ac8d421308cac5a1d4fb239047db (patch) | |
tree | 64723a3b1ed7ecfdece457e7880d344566a90fa9 /canvas/source/directx/dx_impltools.cxx | |
parent | 9f35771929499d655b248fdf8b6bd75e27caf017 (diff) |
Fix dxcanvas gradient glitches
* moved common gradient step size code
out to canvastools to share
* reverted back to manual polygon rendering
for anisotrophic rect and ellipse gradients
* fixed tilemode==none case for bitmap fills
Diffstat (limited to 'canvas/source/directx/dx_impltools.cxx')
-rwxr-xr-x | canvas/source/directx/dx_impltools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/canvas/source/directx/dx_impltools.cxx b/canvas/source/directx/dx_impltools.cxx index 4f5b92d6bcb5..0067ea8e9b71 100755 --- a/canvas/source/directx/dx_impltools.cxx +++ b/canvas/source/directx/dx_impltools.cxx @@ -199,7 +199,7 @@ namespace dxcanvas { const sal_uInt32 nPoints( rPoly.count() ); - if( !nPoints ) + if( nPoints < 2 ) return; rOutput->StartFigure(); |