@@ -1282,7 +1282,9 @@ else if (valign == VerticalAlign.BOTTOM.value())
1282
1282
topAux = (float )convertScale (top );
1283
1283
1284
1284
ColumnText Col = new ColumnText (cb );
1285
- Col .setAlignment (columnAlignment ((alignment )));
1285
+ int colAlignment = columnAlignment (alignment );
1286
+ if (colAlignment !=0 )
1287
+ Col .setAlignment (colAlignment );
1286
1288
ColumnText simulationCol = new ColumnText (null );
1287
1289
float drawingPageHeight = (float )this .pageSize .getTop () - topMargin - bottomMargin ;
1288
1290
//Col.setSimpleColumn(llx, lly, urx, ury);
@@ -1308,14 +1310,15 @@ else if (valign == VerticalAlign.BOTTOM.value())
1308
1310
simulationCol .addElement ((Element )objects .get (k ));
1309
1311
1310
1312
Col = new ColumnText (cb );
1311
- Col .setAlignment (columnAlignment ((alignment )));
1313
+ if (colAlignment !=0 )
1314
+ Col .setAlignment (colAlignment );
1312
1315
Col .setSimpleColumn (leftAux + leftMargin ,drawingPageHeight - bottomAux ,rightAux + leftMargin ,drawingPageHeight - topAux );
1313
1316
1314
1317
bottomAux = bottomAux - drawingPageHeight ;
1315
1318
}
1316
1319
}
1317
- if (objects .get (k ) instanceof Paragraph )
1318
- ((Paragraph )objects .get (k )).setAlignment (columnAlignment ( alignment ) );
1320
+ if (objects .get (k ) instanceof Paragraph && colAlignment != 0 )
1321
+ ((Paragraph )objects .get (k )).setAlignment (colAlignment );
1319
1322
1320
1323
Col .addElement ((Element )objects .get (k ));
1321
1324
Col .go ();
0 commit comments