Topic: generateSvg: Corrected view
I downloaded, compiled and run qelectrotech-0.100 under Linux Mint 21.3.
As the svg export is concerned I noticed a bug, that I was able to fix.
Problem
---------
With "export elements only" the contents of svg export is not correctly centered within the exported area, which causes some contents to be clipped.
Fix
---
sources/exportdialog.cpp: 421
Replace
svg_engine.setSize(QSize((width*9/16), (height*9/16)));
by
svg_engine.setSize(QSize(width, height));
svg_engine.setViewBox(QRect(0, 0, width*0.75, height*0.75));
This corrected the problem.
Regards
Tom
