Project

General

Profile

Actions

Bug #4860

closed
AT RS

After calling “setZoom” on “WcartesianChart” twice, the chart's “setZoom” will not work anymore.

Bug #4860: After calling “setZoom” on “WcartesianChart” twice, the chart's “setZoom” will not work anymore.

Added by Apivan Tuntakurn over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roel Standaert
Target version:
Start date:
04/15/2016
Due date:
% Done:

0%

Estimated time:

Description

After calling "setZoom" on "WcartesianChart" twice, the chart's "setZoom" will not work anymore.

Code on setZoom(1.5) button:

 auto b = new WPushButton("setZoom(1.5) ",this);
  b->clicked().connect([chart](const Wt::WMouseEvent&) {

    chart->axis(YAxis).setZoom(1.5);
    chart->axis(XAxis).setZoom(1.5);
  });

Please use the attached project to reproduce the problem.

Step to reproduce

  1. Build and Run the attached project
  2. Open the browser
  3. Click the "setZoom(1.5)" button twice*
  4. Zoom out the chart by ctrl+scroll
  5. click the "setZoom(1.5)" button again.

Result
"setZoom(1.5)" button is no longer work.

Environment

GCC G 5.2.1 Wt 3.3.5

*The setZoom works correctly, If the button was click only once and then going to step 4.


Files

charts2.tar.gz (1.17 MB) charts2.tar.gz Apivan Tuntakurn, 04/15/2016 05:59 AM

KD Updated by Koen Deforche over 10 years ago Actions #1

  • Status changed from New to InProgress
  • Assignee set to Roel Standaert
  • Target version set to 3.3.6

RS Updated by Roel Standaert over 10 years ago Actions #2

Hey, thanks for reporting. This issue is already fixed and on github though.

Note that the recommended method for 3.3.6 will now be setZoomRange, not setZoom.

RS Updated by Roel Standaert over 10 years ago Actions #3

  • Status changed from InProgress to Implemented @Emweb

KD Updated by Koen Deforche over 10 years ago Actions #4

  • Status changed from Implemented @Emweb to Resolved

AT Updated by Apivan Tuntakurn over 10 years ago Actions #5

Thanks for the fix. I will switch to that setZoomRange.

KD Updated by Koen Deforche about 10 years ago Actions #6

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom