From 086ed69d27ae7f32c8db85d4b6e880d6f81c093d Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Fri, 31 Jul 2020 11:22:56 +0200 Subject: [PATCH] fix warning --- .../Polyhedron/Plugins/Display/Display_property_plugin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Polyhedron/demo/Polyhedron/Plugins/Display/Display_property_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Display/Display_property_plugin.cpp index 551acfacf1f..d7765f6ee55 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Display/Display_property_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Display/Display_property_plugin.cpp @@ -1244,7 +1244,7 @@ private: // Create a legend_ and display it const std::size_t size = (std::min)(color_map.size(), (std::size_t)256); const int text_height = 20; - const int height = text_height*size + text_height; + const int height = text_height*static_cast(size) + text_height; const int width = 140; const int cell_width = width/3; const int top_margin = 15; @@ -1585,6 +1585,7 @@ private: return displayVertexProperty(*sm, pmap); } } + return false; } bool DisplayPropertyPlugin::treat_face_property(std::string name, SMesh* sm) @@ -1690,6 +1691,7 @@ private: return displayFaceProperty(*sm, pmap); } } + return false; } template @@ -1837,5 +1839,6 @@ private: } return true; } + #include "Display_property_plugin.moc"