[kst] [Bug 394971] New: Axis line width increases unintentionally, when "Edit Multiple" is used with high screen resolution

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Sat Jun 2 21:23:38 UTC 2018


https://bugs.kde.org/show_bug.cgi?id=394971

            Bug ID: 394971
           Summary: Axis line width increases unintentionally, when "Edit
                    Multiple" is used with high screen resolution
           Product: kst
           Version: 2.0.8
          Platform: Other
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: plotting
          Assignee: kst at kde.org
          Reporter: manumail at hotmail.de
  Target Milestone: ---

What I did:
- start kst, maximize the window on a high resolution screen (for example 3200
x 1800)
- create a plot and open the "Edit Plot Item" dialog, click "Edit Multiple"
- select the plot on the right and click "Apply"

What I expected to happen:
- the plot should be redrawn as it was

What happened instead:
- plot gets redrawn with increased axis line width

It took me some hours of debugging to find that line of code, but finally.. the
reason for the increase is the line width scaling in method
double Curve::lineDim(const QRectF &R, double linewidth) {
qreal lw = qMax(qreal(1.01), qreal(linewidth) *
(R.width()+R.height())*qreal(1.0/2000.0));

The new width is calculated as a product of the old width and a fraction of
some rectangle dimensions. If the window size is large enough, the second
factor gets large enough to increase the width with every rescaling. I
recommend not to use the old width as a factor.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kst mailing list