CADSTAR Schematic: Fix positioning of symbol attributes

Symbol attributes were being placed at the wrong location
due to incorrect relative angle calculation
This commit is contained in:
Roberto Fernandez Bautista 2021-05-28 17:25:37 +01:00
parent 8d788b7a09
commit 29d1b84939
1 changed files with 2 additions and 4 deletions

View File

@ -1707,10 +1707,8 @@ void CADSTAR_SCH_ARCHIVE_LOADER::loadSymbolFieldAttribute(
ALIGNMENT alignment = aCadstarAttrLoc.Alignment;
double textAngle = aComponentOrientationDeciDeg
- getAngleTenthDegree( aCadstarAttrLoc.OrientAngle );
long long cadstarAngle = getCadstarAngle( textAngle );
double textAngle = getAngleTenthDegree( aCadstarAttrLoc.OrientAngle );
long long cadstarAngle = getCadstarAngle( textAngle - aComponentOrientationDeciDeg );
if( aIsMirrored )
{