diff options
| author | Mike Wey | 2011-11-08 23:21:09 +0100 |
|---|---|---|
| committer | Mike Wey | 2011-11-08 23:21:09 +0100 |
| commit | dc3f793dc1a7885002508860f3b9d7b4e8a3dbd4 (patch) | |
| tree | a7fb2a00411a7aff716416f1d25ced4183ca9b06 | |
| parent | a405bfb4768e3aa5dd90f32e80d0aa2bc453c092 (diff) | |
Properly initialize the Geometry for annotate.
| -rw-r--r-- | dmagick/Image.d | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dmagick/Image.d b/dmagick/Image.d index 852141c..510cfb0 100644 --- a/dmagick/Image.d +++ b/dmagick/Image.d @@ -434,6 +434,12 @@ class Image GravityType gravity = GravityType.NorthWestGravity, double degrees = 0.0) { + if ( boundingArea == Geometry.init ) + { + boundingArea.width = columns; + boundingArea.height = rows; + } + DrawInfo* drawInfo = options.drawInfo; AffineMatrix oldAffine = options.affine; |
