This commit is contained in:
Uwe Rathmann 2023-05-15 12:50:16 +02:00
parent a0df814121
commit b7e4f10f91
1 changed files with 3 additions and 1 deletions

View File

@ -212,6 +212,8 @@ QRectF QskMenuSkinlet::cursorRect(
const auto menu = static_cast< const QskMenu* >( skinnable );
const auto actions = menu->actions();
index = qskActionIndex( menu, index );
QRectF rect;
if ( index < 0 )
@ -226,7 +228,7 @@ QRectF QskMenuSkinlet::cursorRect(
}
else
{
rect = sampleRect( skinnable, contentsRect, Q::Segment, actions[index] );
rect = sampleRect( skinnable, contentsRect, Q::Segment, index );
}
return rect;