diff --git a/src/app/script/range_class.cpp b/src/app/script/range_class.cpp index 3d719ff6b..79b6b48d4 100644 --- a/src/app/script/range_class.cpp +++ b/src/app/script/range_class.cpp @@ -21,7 +21,6 @@ #include "doc/object_ids.h" #include "doc/sprite.h" -#include #include #include @@ -156,8 +155,12 @@ int Range_clear(lua_State* L) // Set an empty range DocRange range; ctx->setRange(range); - obj->updateFromSite(ctx->activeSite()); + // Set empty palette picks + doc::PalettePicks picks; + ctx->setSelectedColors(picks); + + obj->updateFromSite(ctx->activeSite()); return 0; }