changeset 1191:c6a36ecd641d

fix
author Alain Mazy <alain@mazy.be>
date Tue, 26 Nov 2019 16:32:29 +0100
parents f417a0ae282b
children 681f339d6f85 a5f2a6b04a31
files Framework/Radiography/RadiographySceneWriter.cpp Framework/Radiography/RadiographyTextLayer.h
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Radiography/RadiographySceneWriter.cpp	Tue Nov 26 15:27:48 2019 +0100
+++ b/Framework/Radiography/RadiographySceneWriter.cpp	Tue Nov 26 16:32:29 2019 +0100
@@ -62,7 +62,7 @@
   {
     output["type"] = "text";
     output["text"] = layer.GetText();
-    output["fontSize"] = layer.GetFontSize();
+    output["fontSize"] = static_cast<uint32_t>(layer.GetFontSize());
     output["foreground"] = layer.GetForeground();
   }
 
--- a/Framework/Radiography/RadiographyTextLayer.h	Tue Nov 26 15:27:48 2019 +0100
+++ b/Framework/Radiography/RadiographyTextLayer.h	Tue Nov 26 16:32:29 2019 +0100
@@ -49,12 +49,12 @@
       return text_;
     }
 
-    const size_t& GetFontSize() const
+    size_t GetFontSize() const
     {
       return fontSize_;
     }
 
-    const size_t& GetForeground() const
+    uint8_t GetForeground() const
     {
       return foreground_;
     }