Skip to content
Snippets Groups Projects
Commit e61ac4be authored by srosse's avatar srosse
Browse files

OO-1288: optimization proposed by D. Haag

parent aad71dd4
No related branches found
No related tags found
No related merge requests found
......@@ -360,10 +360,11 @@ public class CheckboxPDFExport extends PdfDocument implements MediaResource {
for (int j = 0; j < cols; j++) {
String text = rowContent[j];
float cellWidth = (j==0 ? nameMaxSizeWithMargin : colWidth);
float textWidth = (j==0 ? nameMaxSize : colWidth);
if(text != null) {
if(rowHeights[i] > rowHeight + 1) {
//can do 2 lines
String[] texts = splitText(text, cellWidth, fontSize);
String[] texts = splitText(text, textWidth, fontSize);
float lineTexty = texty;
for(int k=0; k<2 && k<texts.length; k++) {
String textLine = texts[k];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment