[pango] Fix a copy-paste error
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Fix a copy-paste error
- Date: Fri, 30 Nov 2012 04:31:43 +0000 (UTC)
commit a7432c1df678d075c0f34c90f9ea9c30dbe2e38e
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Nov 29 23:32:03 2012 -0500
Fix a copy-paste error
This was spotted by Coverity.
pango/pangocairo-render.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pango/pangocairo-render.c b/pango/pangocairo-render.c
index b9ee221..4874344 100644
--- a/pango/pangocairo-render.c
+++ b/pango/pangocairo-render.c
@@ -128,7 +128,7 @@ _pango_cairo_renderer_draw_frame (PangoCairoRenderer *crenderer,
alpha = G_PI_2 - alpha;
tan_alpha2 = tan (alpha * .5);
if (tan_alpha2 < 1e-5 || (sy = d2 / tan_alpha2, 2. * sy > height - d))
- sy = (width - d) * .5;
+ sy = (height - d) * .5;
cos_alpha = cos (alpha);
if (cos_alpha < 1e-5 || (sx = d2 / cos_alpha, 2. * sx > width - d))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]