Menu

#252 ASCII Color Palettes can not be loaded in SAGA GUI

v5.1.0
closed
nobody
None
1
2017-08-15
2017-07-23
No

SAGA color palettes in ASCII format can not be loaded in the Color Palettes dialog. Palettes in (older) binary format can be loaded, however.

Discussion

  • Volker Wichmann

    Volker Wichmann - 2017-07-23

    Note: seems like this bug only affects the windows version, I'm able to load ASCII palettes on linux

     
  • Volker Wichmann

    Volker Wichmann - 2017-08-05

    I tried to debug this further, the "version" string in case of ASCII palettes is not parsed correctly, see screenshot - this seems to fail in api_file.cpp

    313 bool CSG_File::Read_Line(CSG_String &sLine) const
    

    where the CRLF seems not to be detected correctly. Maybe this is related to the change of using wxInputStream (in order to be able to read/write also zipped streams). Though I still have no idea why this is actually failing ...

     
  • Volker Wichmann

    Volker Wichmann - 2017-08-05

    ... for completeness, loading binary palettes works, here the "version" string is parsed correctly, see screenshot

     
  • Olaf Conrad

    Olaf Conrad - 2017-08-15
    • status: open --> closed
     
  • Olaf Conrad

    Olaf Conrad - 2017-08-15

    fixed with commit [1b33ce]

     

    Related

    Commit: [1b33ce]

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB