We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbf625e commit bddea88Copy full SHA for bddea88
1 file changed
modules/PhysiCell_pathology.cpp
@@ -789,6 +789,14 @@ void setup_svg_substrate_colormap(std::vector<std::string> &colormap)
789
std::string map_name = PhysiCell_settings.svg_substrate_colormap;
790
int name_length = map_name.size();
791
bool is_reversed = false;
792
+ if (name_length < 2)
793
+ {
794
+ std::cout << "WARNING: colormap name " << map_name << " is too short. Using default 'YlOrRd' colormap." << std::endl
795
+ << " Check your save//SVG//plot_substrate//colormap element in your configuration file." << std::endl;
796
+ map_name = "YlOrRd";
797
+ name_length = map_name.size();
798
+ PhysiCell_settings.svg_substrate_colormap = map_name;
799
+ }
800
if (map_name.substr(name_length-2,2)=="_r")
801
{
802
map_name = map_name.substr(0,name_length-2);
0 commit comments