From 4dce755427a8a4631a61bffe303abe4d2ebcda07 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Mon, 4 Feb 2013 14:25:52 +0100 Subject: Add locks and update call in plot multi label function --- agg-plot/lua-plot.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'agg-plot/lua-plot.cpp') diff --git a/agg-plot/lua-plot.cpp b/agg-plot/lua-plot.cpp index 9afa4f28..6019551e 100644 --- a/agg-plot/lua-plot.cpp +++ b/agg-plot/lua-plot.cpp @@ -499,10 +499,13 @@ int plot_xaxis_hol_set (lua_State *L) break; } + AGG_LOCK(); hol->add(fl); - if (create_hol) p->set_xaxis_hol(hol); + AGG_UNLOCK(); + + plot_update_raw (L, p, 1); return 0; } -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /