mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-24 06:07:29 +01:00
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:
parent
72b0e4399c
commit
2e3bc708db
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue