diff options
Diffstat (limited to 'dw/image.cc')
-rw-r--r-- | dw/image.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/image.cc b/dw/image.cc index 82118949..fc914f44 100644 --- a/dw/image.cc +++ b/dw/image.cc @@ -20,6 +20,7 @@ #include "image.hh" +#include "dlib/dlib.h" #include "../lout/msg.h" #include "../lout/misc.hh" #include "../lout/debug.hh" @@ -146,7 +147,7 @@ Image::Image(const char *altText) { DBG_OBJ_CREATE ("dw::Image"); registerName ("dw::Image", &CLASS_ID); - this->altText = altText ? strdup (altText) : NULL; + this->altText = altText ? dStrdup (altText) : NULL; altTextWidth = -1; // not yet calculated buffer = NULL; bufWidth = bufHeight = -1; |