summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorVladimir Glazunov <vg@openoffice.org>2010-08-25 17:13:00 +0200
committerVladimir Glazunov <vg@openoffice.org>2010-08-25 17:13:00 +0200
commit9b727fc028a374a76c72cbf988e86b916807f29d (patch)
tree1c6f3325be708af6bf8d164d3ebed38b41ee5d87 /canvas
parentaa80823112616efa9d7b5cb110d2cfedddc57676 (diff)
parent840d9a7c6ad6f30cfa54958584ef808ca5f46a34 (diff)
CWS-TOOLING: integrate CWS cmcfixes77
Diffstat (limited to 'canvas')
-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);