Fix for blank (null) strings being saved for any color with an r value that contained a leading zero

git-svn-id: svn://localhost/ardour2/trunk@2037 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Doug McLain 2007-06-26 23:50:20 +00:00
parent 72b0e4399c
commit 2e3bc708db

View file

@ -22,6 +22,7 @@
#include <sstream>
#include <ostream>
#include <iostream>
#include <pbd/xml++.h>
@ -84,7 +85,7 @@ class ConfigVariable : public ConfigVariableBase
std::stringstream ss;
if (node.name() == "Canvas") {
ss << std::hex;
ss.fill(0);
ss.fill('0');
ss.width(8);
}
ss << value;