This commit is contained in:
ElenaSubbotina
2016-04-07 17:52:52 +03:00
committed by Alexander Trofimov
parent 274a4c94c8
commit 749349bbf6

View File

@ -82,8 +82,8 @@ void OfficeArtClientAnchorSheet::calculate()
}
else column_width = sheet_info.defaultColumnWidth;
//width = ((int)((column_width * Digit_Width + 5) / Digit_Width * 256 )) / 256.;
width = (int)(((256. * column_width/*width*/ + ((int)(128. / Digit_Width ))) / 256. ) * Digit_Width ); //in pixels
width = ((int)((column_width * Digit_Width + 5) / Digit_Width * 256 )) / 256.;
width = (int)(((256. * width + ((int)(128. / Digit_Width ))) / 256. ) * Digit_Width ); //in pixels
_dxL = dxL / 1024. * width * 9525. ; //9525 => pixels to emu
@ -93,8 +93,8 @@ void OfficeArtClientAnchorSheet::calculate()
}
else column_width = sheet_info.defaultColumnWidth;
//width = ((int)((column_width * Digit_Width + 5) / Digit_Width * 256 )) / 256.;
width = (int)(((256. * column_width/*width*/ + ((int)(128. / Digit_Width ))) / 256. ) * Digit_Width ); //in pixels
width = ((int)((column_width * Digit_Width + 5) / Digit_Width * 256 )) / 256.;
width = (int)(((256. * width + ((int)(128. / Digit_Width ))) / 256. ) * Digit_Width ); //in pixels
_dxR = dxR / 1024. * width * 9525.;
//---------------------------------------------------------------------------------------------------