0003010: Spreadsheet -> Drawing, maximum rows

This commit is contained in:
wmayer
2017-09-24 21:08:30 +02:00
parent 1afad5311c
commit 0816fd1bba

View File

@@ -113,7 +113,7 @@ App::DocumentObjectExecReturn *DrawViewSpreadsheet::execute(void)
return new App::DocumentObjectExecReturn("Empty cell value");
Symbol.setValue(getSheetImage());
requestPaint();
return TechDraw::DrawView::execute();
}
@@ -298,8 +298,12 @@ std::string DrawViewSpreadsheet::getSheetImage(void)
result << " <text text-anchor=\"middle\" style=\"" << textstyle << "\" x=\"" << coloffset + cellwidth/2 << "\" y=\"" << rowoffset + 0.75 * cellheight << "\" font-family=\"" ;
if (alignment & Spreadsheet::Cell::ALIGNMENT_RIGHT)
result << " <text text-anchor=\"end\" style=\"" << textstyle << "\" x=\"" << coloffset + (cellwidth - TextSize.getValue()/2) << "\" y=\"" << rowoffset + 0.75 * cellheight << "\" font-family=\"" ;
result << Font.getValue() << "\"" << " font-size=\"" << TextSize.getValue() << "\""
<< " fill=\"" << fcolor << "\">" << celltext << "</text>" << endl;
if ((alignment & Spreadsheet::Cell::ALIGNMENT_LEFT) ||
(alignment & Spreadsheet::Cell::ALIGNMENT_HCENTER) ||
(alignment & Spreadsheet::Cell::ALIGNMENT_RIGHT)) {
result << Font.getValue() << "\"" << " font-size=\"" << TextSize.getValue() << "\""
<< " fill=\"" << fcolor << "\">" << celltext << "</text>" << endl;
}
}
rowoffset = rowoffset + cellheight;
}