Skip to content

Commit 5c56fff

Browse files
committed
Solve jsonparse error
1 parent cb8966e commit 5c56fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chart/ui/events.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ std::string PointerEvent::dataToJson() const
3636
position)("coords", coords);
3737
if (!markerJson.empty()) { j.raw("marker", markerJson); }
3838
}
39-
return res;
39+
return res.substr(1, res.size()-2);
4040
}
4141

4242
WheelEvent::WheelEvent(double delta, Chart &chart) :

0 commit comments

Comments
 (0)