diff --git a/src/doc/layer_io.cpp b/src/doc/layer_io.cpp index 487d9cefb..ae7134dc2 100644 --- a/src/doc/layer_io.cpp +++ b/src/doc/layer_io.cpp @@ -90,7 +90,7 @@ Layer* read_layer(std::istream& is, LayerSubObjectsSerializer* subObjects, Sprit base::UniquePtr layer; - switch (layer_type) { + switch (static_cast(layer_type)) { case ObjectType::LayerImage: { // Create layer