Fix an issue when printing bitmaps when not on wxWidgets 3.1.6
Commit 6e35d5473
added a hack to fix an issue on wxWidgets 3.1.6. But this hack
must by applied only to 3.1.6, not to other versions.
Fixes #12108
https://gitlab.com/kicad/code/kicad/issues/12108
This commit is contained in:
parent
f6d2164cb0
commit
048cf6df7a
|
@ -261,7 +261,10 @@ void BITMAP_BASE::DrawBitmap( wxDC* aDC, const VECTOR2I& aPos )
|
||||||
matrix.Translate( pos.x, pos.y );
|
matrix.Translate( pos.x, pos.y );
|
||||||
matrix.Scale( GetScalingFactor(), GetScalingFactor() );
|
matrix.Scale( GetScalingFactor(), GetScalingFactor() );
|
||||||
aDC->SetTransformMatrix( matrix );
|
aDC->SetTransformMatrix( matrix );
|
||||||
#if !wxCHECK_VERSION( 3, 1, 6 )
|
|
||||||
|
// Looks like wxWidgets 3.1.6 has a bug to fix the clipboard position
|
||||||
|
// So for 3.1.6 only, clipAreaPos.x = clipAreaPos.y = 0
|
||||||
|
#if !wxCHECK_VERSION( 3, 1, 6 ) || wxCHECK_VERSION( 3, 1, 7 )
|
||||||
clipAreaPos.x = pos.x;
|
clipAreaPos.x = pos.x;
|
||||||
clipAreaPos.y = pos.y;
|
clipAreaPos.y = pos.y;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue