Fix two-point assistant drawing layers to be in correct order.

Fixes https://gitlab.com/kicad/code/kicad/issues/5654
This commit is contained in:
Jeff Young 2020-10-03 22:02:38 +01:00
parent 44580acee2
commit 70f329df91
2 changed files with 4 additions and 3 deletions

View File

@ -94,5 +94,6 @@ void TWO_POINT_ASSISTANT::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
}
// place the text next to cursor, on opposite side from drawing
DrawTextNextToCursor( aView, end, origin - end, cursorStrings, aLayer == LAYER_GP_OVERLAY );
DrawTextNextToCursor( aView, end, origin - end, cursorStrings,
aLayer == LAYER_SELECT_OVERLAY );
}

View File

@ -57,8 +57,8 @@ namespace PREVIEW
void ViewGetLayers( int aLayers[], int& aCount ) const override
{
aLayers[0] = LAYER_GP_OVERLAY;
aLayers[1] = LAYER_SELECT_OVERLAY;
aLayers[0] = LAYER_SELECT_OVERLAY; // Assitant graphics
aLayers[1] = LAYER_GP_OVERLAY; // Drop shadows
aCount = 2;
}