Mercurial > hg > orthanc
diff Core/Images/FontRegistry.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/FontRegistry.cpp Wed Sep 20 16:28:27 2017 +0200 +++ b/Core/Images/FontRegistry.cpp Wed Sep 20 17:02:27 2017 +0200 @@ -57,12 +57,14 @@ } +#if ORTHANC_SANDBOXED == 0 void FontRegistry::AddFromFile(const std::string& path) { std::auto_ptr<Font> f(new Font); f->LoadFromFile(path); fonts_.push_back(f.release()); } +#endif #if ORTHANC_HAS_EMBEDDED_RESOURCES == 1