diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-06-05 17:16:54 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-06-05 17:16:54 (GMT) |
commit | 98377b7120a4cd7be1387147966a6064c8519bd5 (patch) | |
tree | 1db7ca6afac24fda22c555d2af80c0a82b90a5ec /tksao/colorbar/lut.C | |
parent | 762c557b335405159118aa614fc16bfb1f1dfa81 (diff) | |
download | blt-98377b7120a4cd7be1387147966a6064c8519bd5.zip blt-98377b7120a4cd7be1387147966a6064c8519bd5.tar.gz blt-98377b7120a4cd7be1387147966a6064c8519bd5.tar.bz2 |
GUI: colobar cmds load/save errors now report via Error proc
Diffstat (limited to 'tksao/colorbar/lut.C')
-rw-r--r-- | tksao/colorbar/lut.C | 5 |
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) |