diff Core/Images/Font.cpp @ 2407:5edec967055e

fix sandboxed builds
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 20 Sep 2017 17:02:27 +0200
parents 4900688827a8
children 878b59270859
line wrap: on
line diff
--- a/Core/Images/Font.cpp	Wed Sep 20 16:28:27 2017 +0200
+++ b/Core/Images/Font.cpp	Wed Sep 20 17:02:27 2017 +0200
@@ -38,7 +38,10 @@
 #  error ORTHANC_ENABLE_LOCALE must be defined to use this file
 #endif
 
-#include "../SystemToolbox.h"
+#if ORTHANC_SANDBOXED == 0
+#  include "../SystemToolbox.h"
+#endif
+
 #include "../Toolbox.h"
 #include "../OrthancException.h"
 
@@ -138,12 +141,14 @@
   }
 
 
+#if ORTHANC_SANDBOXED == 0
   void Font::LoadFromFile(const std::string& path)
   {
     std::string font;
     SystemToolbox::ReadFile(font, path);
     LoadFromMemory(font);
   }
+#endif
 
 
   static unsigned int MyMin(unsigned int a,