diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/colour.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/colour.cpp b/src/gui/colour.cpp index 816420ed..e6ceeaca 100644 --- a/src/gui/colour.cpp +++ b/src/gui/colour.cpp @@ -26,6 +26,7 @@ #include "../configuration.h" #include "../utils/gettext.h" +#include "../utils/tostring.h" Colour::Colour() { @@ -48,9 +49,7 @@ Colour::~Colour() col != colEnd; ++col) { - char buffer[20]; - std::sprintf(buffer, "0x%06x", col->rgb); - config.setValue("Colour" + col->text, buffer); + config.setValue("Colour" + col->text, toString(col->rgb)); } } |