Actions
Bug #4860
closedAfter calling “setZoom” on “WcartesianChart” twice, the chart's “setZoom” will not work anymore.
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
- Build and Run the attached project
- Open the browser
- Click the "setZoom(1.5)" button twice*
- Zoom out the chart by ctrl+scroll
- 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
Updated by Koen Deforche over 8 years ago
- Status changed from New to InProgress
- Assignee set to Roel Standaert
- Target version set to 3.3.6
Updated by Roel Standaert over 8 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.
Updated by Roel Standaert over 8 years ago
- Status changed from InProgress to Implemented @Emweb
Updated by Koen Deforche over 8 years ago
- Status changed from Implemented @Emweb to Resolved
Updated by Apivan Tuntakurn over 8 years ago
Thanks for the fix. I will switch to that setZoomRange.
Updated by Koen Deforche over 8 years ago
- Status changed from Resolved to Closed
Actions