This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new 1ce07f25df Code cleanup
1ce07f25df is described below
commit 1ce07f25dfc815f42a7f16b3ee2e0bd0fc9b6c64
Author: mseidel <[email protected]>
AuthorDate: Thu Feb 12 15:13:38 2026 +0100
Code cleanup
---
main/svtools/source/control/tabbar.cxx | 56 +++++++++++++++++-----------------
main/vcl/source/window/decoview.cxx | 6 +---
2 files changed, 29 insertions(+), 33 deletions(-)
diff --git a/main/svtools/source/control/tabbar.cxx
b/main/svtools/source/control/tabbar.cxx
index 34adba063e..a99b368c51 100644
--- a/main/svtools/source/control/tabbar.cxx
+++ b/main/svtools/source/control/tabbar.cxx
@@ -1205,36 +1205,36 @@ void TabBar::Paint( const Rectangle& )
}
}
- // Da etwas übermalt werden könnte, müssen wir die
Polygonumrandung noch einmal ausgeben
- SetLineColor( rStyleSettings.GetDarkShadowColor() );
- SetFillColor();
- DrawPolygon( aPoly );
-
- // Beim aktuellen Tab die restlichen Ausgaben vornehmen und
- // die Schleife abbrechen, da der aktuelle Tab als letztes
- // ausgegeben wird
- if ( pItem == pCurItem )
- {
- // Beim aktuellen Item muss der oberstes Strich gelöscht
werden
- SetLineColor();
- SetFillColor( aSelectColor );
- Rectangle aDelRect( aPos0, aPos3 );
- DrawRect( aDelRect );
- if ( mnWinStyle & WB_3DTAB )
- {
- aDelRect.Top()--;
- DrawRect( aDelRect );
- }
+ // Da etwas übermalt werden könnte, müssen wir
die Polygonumrandung noch einmal ausgeben
+ SetLineColor(
rStyleSettings.GetDarkShadowColor() );
+ SetFillColor();
+ DrawPolygon( aPoly );
- break;
- }
+ // Beim aktuellen Tab die restlichen Ausgaben
vornehmen und
+ // die Schleife abbrechen, da der aktuelle Tab
als letztes
+ // ausgegeben wird
+ if ( pItem == pCurItem )
+ {
+ // Beim aktuellen Item muss der oberste
Strich gelöscht werden
+ SetLineColor();
+ SetFillColor( aSelectColor );
+ Rectangle aDelRect( Point(aPos0.X()+1,
aPos0.Y()), Point(aPos3.X()-1, aPos3.Y()) );
+ DrawRect( aDelRect );
+ if ( mnWinStyle & WB_3DTAB )
+ {
+ aDelRect.Top()--;
+ DrawRect( aDelRect );
+ }
- pItem = mpItemList->Prev();
- }
- else
- {
- if ( pItem == pCurItem )
- break;
+ break;
+ }
+
+ pItem = mpItemList->Prev();
+ }
+ else
+ {
+ if ( pItem == pCurItem )
+ break;
pItem = NULL;
}
diff --git a/main/vcl/source/window/decoview.cxx
b/main/vcl/source/window/decoview.cxx
index 19b00c0746..07467fc99b 100644
--- a/main/vcl/source/window/decoview.cxx
+++ b/main/vcl/source/window/decoview.cxx
@@ -589,11 +589,7 @@ void DecorationView::DrawSymbol( const Rectangle& rRect,
SymbolType eType,
{
if ( nStyle & SYMBOL_DRAW_DISABLE )
{
- // Als Embosed ausgeben
- mpOutDev->SetFillColor( rStyleSettings.GetLightColor()
);
- Rectangle aTempRect = aRect;
- aTempRect.Move( 0, 0 );
- ImplDrawSymbol( mpOutDev, aTempRect, eType );
+ // Als Disabled ausgeben
mpOutDev->SetFillColor( rStyleSettings.GetShadowColor()
);
}
else