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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user