From 573abee2b53fdc62b735396f3dc4b9fd7d938245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Tue, 14 Sep 2010 23:35:12 +0000 Subject: [PATCH] InsetLine.cpp: correct coding style git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35375 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetLine.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/insets/InsetLine.cpp b/src/insets/InsetLine.cpp index a0110c7a14..991ef5a4db 100644 --- a/src/insets/InsetLine.cpp +++ b/src/insets/InsetLine.cpp @@ -131,16 +131,13 @@ void InsetLine::draw(PainterInfo & pi, int x, int y) const // get the length of the parameters in pixels Length offset = Length(to_ascii(getParam("offset"))); - int o = - offset.inPixels(pi.base.textwidth, + int o = offset.inPixels(pi.base.textwidth, fm.width(char_type('M'))); Length width = Length(to_ascii(getParam("width"))); - int w = - width.inPixels(pi.base.textwidth, + int w = width.inPixels(pi.base.textwidth, fm.width(char_type('M'))); Length height = Length(to_ascii(getParam("height"))); - int h = - height.inPixels(pi.base.textwidth, + int h = height.inPixels(pi.base.textwidth, fm.width(char_type('M'))); // get the surrounding text color