summaryrefslogtreecommitdiffstats
path: root/tksao/colorbar/lut.C
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/colorbar/lut.C')
-rw-r--r--tksao/colorbar/lut.C5
1 files changed, 3 insertions, 2 deletions
diff --git a/tksao/colorbar/lut.C b/tksao/colorbar/lut.C
index 3b51110..08340c4 100644
--- a/tksao/colorbar/lut.C
+++ b/tksao/colorbar/lut.C
@@ -96,12 +96,13 @@ int LUTColorMap::load(const char* var)
return 1; // we found at least one RGBColor
}
-void LUTColorMap::save(const char* fn)
+int LUTColorMap::save(const char* fn)
{
ofstream fstr(fn);
if (!fstr)
- return;
+ return 0;
fstr << *this;
+ return 1;
}
unsigned char LUTColorMap::getRedChar(int ii, int count)