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:
parent
44580acee2
commit
70f329df91
|
@ -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 );
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue