there is a bug in the file "\Magick++\lib\geometry.cpp", in the function which generates a text string of the current geometry parameters (starts on line 277).
// Return geometry string
Magick::Geometry::operator std::string() const
When generating the x & y offset text an extra '+' is inserted before the offset, leading to positive offsets being rendered as "++x++y", and negative as "-+x-+y", this breaks the code which reads the geometry strings (GetGeometry(...)) causing the x & y offsets to always be read as 0,0.
Lines in questions:
>307
Code: Select all
FormatMagickString( buffer, MaxTextExtent, "%+.20g", (double) _xOff);
Code: Select all
FormatMagickString( buffer, MaxTextExtent, "%.20g", (double) _xOff);
Code: Select all
FormatMagickString( buffer, MaxTextExtent, "%+.20g", (double) _yOff);
Code: Select all
FormatMagickString( buffer, MaxTextExtent, "%.20g", (double) _yOff);
Rich