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

bNoLines is always false

üst b3a9e9c7
...@@ -80,7 +80,6 @@ public: ...@@ -80,7 +80,6 @@ public:
sal_Bool IsTwoLines() const; sal_Bool IsTwoLines() const;
void SetTwoLines(sal_Bool bSet); void SetTwoLines(sal_Bool bSet);
void SetNoLines(sal_Bool bSet);
void SetBrackets(sal_Unicode cStart, sal_Unicode cEnd); void SetBrackets(sal_Unicode cStart, sal_Unicode cEnd);
......
...@@ -176,7 +176,6 @@ class FontPrevWin_Impl ...@@ -176,7 +176,6 @@ class FontPrevWin_Impl
bDrawBaseLine : 1, bDrawBaseLine : 1,
bPreviewBackgroundToCharacter : 1, bPreviewBackgroundToCharacter : 1,
bTwoLines : 1, bTwoLines : 1,
bNoLines : 1,
bUseFontNameAsText : 1, bUseFontNameAsText : 1,
bTextInited : 1; bTextInited : 1;
...@@ -192,7 +191,6 @@ public: ...@@ -192,7 +191,6 @@ public:
cStartBracket( 0 ), cEndBracket( 0 ), nFontWidthScale( 100 ), cStartBracket( 0 ), cEndBracket( 0 ), nFontWidthScale( 100 ),
bSelection( sal_False ), bGetSelection( sal_False ), bUseResText( sal_False ), bSelection( sal_False ), bGetSelection( sal_False ), bUseResText( sal_False ),
bDrawBaseLine( sal_True ), bPreviewBackgroundToCharacter( sal_False ), bTwoLines( sal_False ), bDrawBaseLine( sal_True ), bPreviewBackgroundToCharacter( sal_False ), bTwoLines( sal_False ),
bNoLines( sal_False ),
bUseFontNameAsText( sal_False ), bTextInited( sal_False ) bUseFontNameAsText( sal_False ), bTextInited( sal_False )
{ {
SvtLanguageOptions aLanguageOptions; SvtLanguageOptions aLanguageOptions;
...@@ -819,18 +817,15 @@ void SvxFontPrevWindow::Paint( const Rectangle& ) ...@@ -819,18 +817,15 @@ void SvxFontPrevWindow::Paint( const Rectangle& )
else else
{ {
if (!pImpl->bNoLines) Color aLineCol = GetLineColor();
{
Color aLineCol = GetLineColor();
SetLineColor( rFont.GetColor() ); SetLineColor( rFont.GetColor() );
if ( pImpl->bDrawBaseLine ) if ( pImpl->bDrawBaseLine )
{ {
DrawLine( Point( 0, nY ), Point( nX, nY ) ); DrawLine( Point( 0, nY ), Point( nX, nY ) );
DrawLine( Point( nX + aTxtSize.Width(), nY ), Point( aLogSize.Width(), nY ) ); DrawLine( Point( nX + aTxtSize.Width(), nY ), Point( aLogSize.Width(), nY ) );
}
SetLineColor( aLineCol );
} }
SetLineColor( aLineCol );
Point aTmpPoint( nX, nY ); Point aTmpPoint( nX, nY );
pImpl->DrawPrev( this, pPrinter, aTmpPoint, rFont ); pImpl->DrawPrev( this, pPrinter, aTmpPoint, rFont );
...@@ -848,11 +843,6 @@ void SvxFontPrevWindow::SetTwoLines(sal_Bool bSet) ...@@ -848,11 +843,6 @@ void SvxFontPrevWindow::SetTwoLines(sal_Bool bSet)
pImpl->bTwoLines = bSet; pImpl->bTwoLines = bSet;
} }
void SvxFontPrevWindow::SetNoLines(sal_Bool bSet)
{
pImpl->bNoLines = bSet;
}
void SvxFontPrevWindow::SetBrackets(sal_Unicode cStart, sal_Unicode cEnd) void SvxFontPrevWindow::SetBrackets(sal_Unicode cStart, sal_Unicode cEnd)
{ {
pImpl->cStartBracket = cStart; pImpl->cStartBracket = cStart;
......
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