Kaydet (Commit) d4758e6f authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#706084 Unintended sign extension

and

coverity#706085 Unintended sign extension

Change-Id: I4bb617cd6927542dfef6dea89c5417ec4f9ed495
üst 6554c1f3
...@@ -113,7 +113,7 @@ private: ...@@ -113,7 +113,7 @@ private:
Font maFont; Font maFont;
Color maTextColor; Color maTextColor;
sal_uInt16 mnCharHeight; long mnCharHeight;
sal_uInt16 mnFixCharWidth100; sal_uInt16 mnFixCharWidth100;
sal_uLong mnMaxTextLen; sal_uLong mnMaxTextLen;
...@@ -259,7 +259,7 @@ public: ...@@ -259,7 +259,7 @@ public:
sal_uLong GetTextHeight() const; sal_uLong GetTextHeight() const;
sal_uLong CalcTextWidth(); sal_uLong CalcTextWidth();
sal_uInt16 GetCharHeight() const { return mnCharHeight; } long GetCharHeight() const { return mnCharHeight; }
sal_uLong GetParagraphCount() const; sal_uLong GetParagraphCount() const;
OUString GetText( sal_uLong nParagraph ) const; OUString GetText( sal_uLong nParagraph ) const;
......
...@@ -203,7 +203,7 @@ void TextEngine::SetFont( const Font& rFont ) ...@@ -203,7 +203,7 @@ void TextEngine::SetFont( const Font& rFont )
mnDefTab = (sal_uInt16)aTextSize.Width(); mnDefTab = (sal_uInt16)aTextSize.Width();
if ( !mnDefTab ) if ( !mnDefTab )
mnDefTab = 1; mnDefTab = 1;
mnCharHeight = (sal_uInt16)aTextSize.Height(); mnCharHeight = aTextSize.Height();
mnFixCharWidth100 = 0; mnFixCharWidth100 = 0;
FormatFullDoc(); FormatFullDoc();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment