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

Re: generateSvg: Corrected view

Added, thanks you Tom.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !