Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
749349bb
Commit
749349bb
authored
Apr 07, 2016
by
ElenaSubbotina
Committed by
Alexander Trofimov
May 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
274a4c94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/ODRAW/OfficeArtClientAnchorSheet.cpp
...ogic/Biff_structures/ODRAW/OfficeArtClientAnchorSheet.cpp
+4
-4
No files found.
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/ODRAW/OfficeArtClientAnchorSheet.cpp
View file @
749349bb
...
...
@@ -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.
;
//---------------------------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment