diff --git a/src/Mod/TechDraw/App/DrawViewSpreadsheet.cpp b/src/Mod/TechDraw/App/DrawViewSpreadsheet.cpp index 69c29e3259..ec1003f7aa 100644 --- a/src/Mod/TechDraw/App/DrawViewSpreadsheet.cpp +++ b/src/Mod/TechDraw/App/DrawViewSpreadsheet.cpp @@ -264,12 +264,17 @@ std::string DrawViewSpreadsheet::getSheetImage(void) if (prop != 0) { if (prop->isDerivedFrom((App::PropertyQuantity::getClassTypeId()))) { field << cell->getFormattedQuantity(); - } else if (prop->isDerivedFrom((App::PropertyFloat::getClassTypeId()))) + } else if (prop->isDerivedFrom((App::PropertyFloat::getClassTypeId()))) { field << cell->getFormattedQuantity(); - else if (prop->isDerivedFrom((App::PropertyString::getClassTypeId()))) + } else if (prop->isDerivedFrom((App::PropertyInteger::getClassTypeId()))) { + field << cell->getFormattedQuantity(); + } else if (prop->isDerivedFrom((App::PropertyString::getClassTypeId()))) { field << static_cast(prop)->getValue(); - else - assert(0); + } else { + Base::Console().Error("DVSS: Unknown property type\n"); + celltext = "???"; +// assert(0); + } celltext = field.str(); } // get colors, style, alignment and span