mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
.
This commit is contained in:
committed by
Alexander Trofimov
parent
274a4c94c8
commit
749349bbf6
@ -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.;
|
||||
//---------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user