float w = 0;
int col2 = anchor.getCol1();
int dx2 = 0;
- if(anchor.getDx1() > 0){
- w += getColumnWidthInPixels(col2) - anchor.getDx1();
- col2++;
- }
for (;;) {
w += getColumnWidthInPixels(col2);
}
if(w > scaledWidth) {
- double cw = getColumnWidthInPixels(col2 + 1);
+ double cw = getColumnWidthInPixels(col2 );
double delta = w - scaledWidth;
dx2 = (int)(EMU_PER_PIXEL*(cw-delta));
}
int row2 = anchor.getRow1();
int dy2 = 0;
- if(anchor.getDy1() > 0){
- h += getRowHeightInPixels(row2) - anchor.getDy1()/EMU_PER_PIXEL;
- row2++;
- }
-
for (;;) {
h += getRowHeightInPixels(row2);
if(h > scaledHeight) break;