From 0a299d9eeba3a191eecbe7826c9abd5cd5bd4c52 Mon Sep 17 00:00:00 2001 From: "mozilla@weilbacher.org" Date: Wed, 19 Sep 2007 16:01:44 -0700 Subject: [PATCH] [OS/2] Bug 396661: fix OS/2 build break in nsTextFrameThebes by removing the unnecessary cast, r/sr/a=roc --- layout/generic/nsTextFrameThebes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/generic/nsTextFrameThebes.cpp b/layout/generic/nsTextFrameThebes.cpp index 6929f511ee28..237d8b445444 100644 --- a/layout/generic/nsTextFrameThebes.cpp +++ b/layout/generic/nsTextFrameThebes.cpp @@ -3807,7 +3807,7 @@ nsTextFrame::PaintTextDecorations(gfxContext* aCtx, const gfxRect& aDirtyRect, // XXX aFramePt is in AppUnits, shouldn't it be nsFloatPoint? gfxPoint pt(aFramePt.x / app, (aTextBaselinePt.y - mAscent) / app); - gfxSize size(gfxFloat(GetRect().width) / app, 0); + gfxSize size(GetRect().width / app, 0); gfxFloat ascent = gfxFloat(mAscent) / app; if (decorations & NS_FONT_DECORATION_OVERLINE) {