> Actually it is a bug in the way, the row and column is calculated,
> leading to strange stretching of the image.
In order to clarify, the bug is in the class
XSSFClientAnchor
in the method
getPreferredSize(double scale)
The remaining X (dx2) is not calculated the right way.
Instead of
if (w > scaledWidth) {
double cw = getColumnWidthInPixels(col2 + 1);
double delta = w - scaledWidth;
dx2 = (int) (EMU_PER_PIXEL * (cw - delta));
}
it should be
if (w > scaledWidth) {
double cw = getColumnWidthInPixels(col2 + 1);
double delta = w - scaledWidth;
dx2 = (int) (EMU_PER_PIXEL * (cw - delta));
// test single col:
if (col2 == anchor.getCol1()) {
dx2 = (int) (EMU_PER_PIXEL * scaledWidth);
}
}
and same modification for the rows.
Cheers,
Hannes
--
GRID-IT Gesellschaft für angewandte Geoinformatik mbH
Dr. Hannes Kleindienst
Technikerstrasse 21a, A-6020 Innsbruck
web www.grid-it.at
tel +43-(0)512-507 4861
mobil +43-(0)676-4300399
fax +43-(0)512-5074869
mail [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]