Qucs / qucs

Qucs Project official mirror
http://qucs.sourceforge.net/
GNU General Public License v2.0
1.15k stars 213 forks source link

Upside down text for mirrored transformer #911

Open Vort opened 5 years ago

Vort commented 5 years ago
  1. Place Symmetric Transformer.
  2. Mirror it with Ctrl+M.
  3. Save schematic.
  4. Close schematic.
  5. Open schematic again.

T1 and T2 labels becomes upside down.

qucs_bug

Tested with QUCS 0.0.20 (4205dd365) on Windows 7 SP1 x64.

Rmano commented 5 years ago

Happens the same in Linux; confirmed to be not Windows-specific.

in3otd commented 5 years ago

I've checked the past Qucs releases and this issue has been there since quite some time, the oldest I tried was 0.0.15 and it behaves the same.

ddrake commented 3 years ago

I'm seeing the same issue also on Ubuntu 20.04 for the following components in Qucs 0.0.20: Transformer, Mutual inductors, 3 mutual inductors, AM modulated source, PM modulated source, 2Bit Full Adder, RS-FlipFlop, 4 to 16 Demux, etc... (some of these may rarely need to be mirrored).

I noticed that MultiViewComponents like Microstrip Tee don't have this issue. As a test, I changed the Symmetric Transformer to derive from MultiViewComponent instead of Component (this required moving the symbol drawing code into a protected method createSymbol). That fixed the issue in this case. I've just started looking at the source code, and I'm not sure if this makes sense as a permanent fix, but maybe gives a clue to where the issue lies.