X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab9d0a8ca3d306898d92960ecfaefb8c1191b18a..d40a56d0db2e5249a65087b6af7d1ff7bfb378a6:/src/gtk1/dcclient.cpp diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index cfd61fc9ce..d77ba5460c 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/dcclient.cpp @@ -27,7 +27,7 @@ #include "wx/gtk/win_gtk.h" -#include // for floating-point functions +#include "wx/math.h" // for floating-point functions #include #include @@ -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();