-rw-r--r-- | agg-plot/lua-plot.cpp | 5 |
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; } |