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 almost 9 years ago
- Status changed from New to InProgress
- Assignee set to Roel Standaert
- Target version set to 3.3.6
Updated by Roel Standaert almost 9 years ago
- Status changed from InProgress to Implemented @Emweb
Actions