X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/463c4d7193481ac27626b282ccf0ac178f029abd..96461cc29d03b4a7ab72abaae2e7edace93dd2a5:/src/gtk1/dcclient.cpp diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index 7ae955a594..d77ba5460c 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/dcclient.cpp @@ -1672,6 +1672,8 @@ void wxWindowDC::DoDrawRotatedText( const wxString &text, wxCoord x, wxCoord y, int i_angle = (int) angle; i_angle = i_angle % 360; + if (i_angle < 0) + i_angle += 360; int xoffset = 0; if ((i_angle >= 90.0) && (i_angle < 270.0)) xoffset = image.GetWidth();