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() );