You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2026/02/12 14:16:26 UTC

(openoffice) branch AOO42X updated: Code cleanup

This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO42X by this push:
     new 86084ed968 Code cleanup
86084ed968 is described below

commit 86084ed968e1321f5da0f4d7a116f5c7de54cf7f
Author: mseidel <ms...@apache.org>
AuthorDate: Thu Feb 12 15:13:38 2026 +0100

    Code cleanup
    
    (cherry picked from commit 1ce07f25dfc815f42a7f16b3ee2e0bd0fc9b6c64)
---
 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