diff --git a/src/Mod/Drawing/App/FeatureViewSpreadsheet.cpp b/src/Mod/Drawing/App/FeatureViewSpreadsheet.cpp index b9382cc2b..bf89366ba 100644 --- a/src/Mod/Drawing/App/FeatureViewSpreadsheet.cpp +++ b/src/Mod/Drawing/App/FeatureViewSpreadsheet.cpp @@ -179,7 +179,8 @@ App::DocumentObjectExecReturn *FeatureViewSpreadsheet::execute(void) assert(0); celltext = field.str(); } - // get colors, style and span + // get colors, style, alignment and span + int alignment; std::string bcolor = "none"; std::string fcolor = "#" + hr.str() + hg.str() + hb.str(); std::string textstyle = ""; @@ -225,14 +226,20 @@ App::DocumentObjectExecReturn *FeatureViewSpreadsheet::execute(void) } } } + cell->getAlignment(alignment); } // skip cell if found in skiplist if (std::find(skiplist.begin(), skiplist.end(), address.toString()) == skiplist.end()) { result << " " << endl - << " " << endl; + if (alignment & Spreadsheet::Cell::ALIGNMENT_LEFT) + result << " " << celltext << "" << endl; } rowoffset = rowoffset + cellheight;