summaryrefslogtreecommitdiff
path: root/canvas/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-05 10:43:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-05 10:43:00 +0100
commit4bdbb59c38b207326537293b1d3c084c723fcd7d (patch)
treee3402aa2de3451f94f9008e3554afd0b5ea16117 /canvas/source
parent915c4d8047fef8fc39730a8f7c77c43f1f1d8906 (diff)
#i113400# Maths brackets misformed in presentation mode
Diffstat (limited to 'canvas/source')
-rw-r--r--canvas/source/cairo/cairo_textlayout.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx
index dfe2071c3726..d0873b63f5f0 100644
--- a/canvas/source/cairo/cairo_textlayout.cxx
+++ b/canvas/source/cairo/cairo_textlayout.cxx
@@ -521,8 +521,8 @@ namespace cairocanvas
nWidth = aFont.GetHeight();
} else {
// any scaling needs to be relative to the platform-dependent definition
- // of width of the font
- nWidth = aFont.GetHeight() * aFont.GetWidth() / aMetric.GetWidth();
+ // of height of the font
+ nWidth = aFont.GetWidth() * aFont.GetHeight() / aMetric.GetHeight();
}
cairo_matrix_init_identity(&m);