-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schematic Editor: View All -> wrong scaling #426
Comments
I've conducted a quick research: it seems like the cause of described behavior is this line. It calculates the width of a rectangle able to hold the text of the script, but selected I'll try to make a fix using a proper method. |
Newlines in the text of schematic element's property should be treated as line breaks otherwise the text of an element would become a single very long line and the calculated width of an element would be incorrect. This commit fixes such problem by replacing newlines-ignorant method with a newlines-aware one. Fixes ra3xdh#426
Newlines in the text of schematic element's property should be treated as line breaks otherwise the text of an element would become a single very long line and the calculated width of an element would be incorrect. This commit fixes such problem by replacing newlines-ignorant method with a newlines-aware one. Fixes ra3xdh#426
Fixed by #429 |
Another way this issue is caused is when a wire or any "Painting" like a line, ellipse, circle..etc is so short or small to be unviewable. A "phantom" net caused by cut-paste or moving multiple items can also be a pain to locate and delete I've had to use a text editor to find and delete the item... |
@tomhajjar could you please provide an example file or a video? I'm not sure I understand clearly how to reproduce the described issue. |
Make a wire or any "Painting" like a line, ellipse, circle..etc that is so short or small to be unviewable and place it out of the desired viewable area. Attached is a schematic with a line and ellipse with a dimension of "0". If these end up "off screen" they both screw up "Zoom All" AND they cannot be selected for deletion. Only a text editor will find and delete them. The "phantom" net is harder to reproduce since I don't know what causes it other than it randomly occurs during a cut-paste or moving of multiple items. The net name is visible but detached from the actual net itself. The net name can be so far away from the "schematic" it becomes invisible when zoom all is used. If you can find it you can click on it and delete it. I usually end up deleting the net and hope it disappears but unfortunately it doesn't always work. I end up using a text editor to find it in the schematic and delete it. |
The schematic editor performs wrong graphics scaling of the schematic diagram at "View All".
Probably the long Nutmeg script is the root cause for this issue(?)
HBM_9.sch.zip
View_All.mp4
Version Info:
Qucs-S 24.1-7df0e3e9
Operating System: Manjaro Linux
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Kernel Version: 6.6.8-2-MANJARO (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz
Memory: 15,3 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4400
Manufacturer: CompuLab Ltd.
Product Name: Intense-PC2 (IPC2)
System Version: 1.x
The text was updated successfully, but these errors were encountered: