Project

General

Profile

Actions

Bug #4860

closed

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

Added by Apivan Tuntakurn almost 10 years ago. Updated over 9 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
Actions #1

Updated by Koen Deforche almost 10 years ago

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

Updated by Roel Standaert almost 10 years ago

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.

Actions #3

Updated by Roel Standaert almost 10 years ago

  • Status changed from InProgress to Implemented @Emweb
Actions #4

Updated by Koen Deforche almost 10 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #5

Updated by Apivan Tuntakurn almost 10 years ago

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

Actions #6

Updated by Koen Deforche over 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF