All pastes #813427 Raw Edit

Stuff

public text v1 · immutable
·published 2007-12-12 15:07 UTC
rendered paste body
Index: src/shape.cpp
===================================================================
--- src/shape.cpp       (revision 91121)
+++ src/shape.cpp       (working copy)
@@ -1746,12 +1746,9 @@
 void
 Path::GetSizeForBrush (cairo_t *cr, double *width, double *height)
 {
-       double x1, y1, x2, y2;
-
-       cairo_stroke_extents (cr, &x1, &y1, &x2, &y2);
-
-       *height = fabs (y2 - y1);
-       *width = fabs (x2 - x1);
+       ComputeBounds ();
+       *height = bounds.h;
+       *width = bounds.w;
 }