From c816f5ea9001b521f4a17aed20a2dcd1ea0c6c07 Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Fri, 14 Jan 2022 09:46:52 +0100 Subject: [PATCH] fix normal rendering --- examples/boxes/main.cpp | 12 +++++++++--- src/nodes/QskBoxRendererEllipse.cpp | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/examples/boxes/main.cpp b/examples/boxes/main.cpp index 00af86f9..d6bd06ef 100644 --- a/examples/boxes/main.cpp +++ b/examples/boxes/main.cpp @@ -494,7 +494,7 @@ class TabView : public QskTabView addColoredBorderRectangles5( tab5, true ); addTab( tab5 ); - setCurrentIndex( count() - 1 ); + setCurrentIndex( count() - 2 ); } private: @@ -521,10 +521,16 @@ int main( int argc, char* argv[] ) SkinnyShortcut::enable( SkinnyShortcut::Quit | SkinnyShortcut::DebugShortcuts ); // ### remove: - auto* tabView = new TabView(); - QskWindow window; +#if 1 + auto* tabView = new TabView(); window.addItem( tabView ); +#else + auto* tab4 = new QskLinearBox( Qt::Horizontal, 5 ); + addTestRectangle( tab4 ); + window.addItem( tab4 ); +#endif + window.resize( 600, 600 ); window.show(); diff --git a/src/nodes/QskBoxRendererEllipse.cpp b/src/nodes/QskBoxRendererEllipse.cpp index 530c1518..23df3ed4 100644 --- a/src/nodes/QskBoxRendererEllipse.cpp +++ b/src/nodes/QskBoxRendererEllipse.cpp @@ -613,7 +613,7 @@ namespace { if ( borderLines ) { - linesTR = borderLines; + linesTR = borderLines + 1; linesTL = linesTR + numCornerLines + additionalGradientStops( borderMapTR.gradient() ); linesBL = linesTL + numCornerLines + additionalGradientStops( borderMapTL.gradient() ); linesBR = linesBL + numCornerLines + additionalGradientStops( borderMapBR.gradient() );