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
d2b76089
Commit
d2b76089
authored
Aug 26, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0a7bcfdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
ASCOfficeRtfFile/RtfFormatLib/source/DestinationCommand.cpp
ASCOfficeRtfFile/RtfFormatLib/source/DestinationCommand.cpp
+27
-5
No files found.
ASCOfficeRtfFile/RtfFormatLib/source/DestinationCommand.cpp
View file @
d2b76089
...
...
@@ -2370,8 +2370,17 @@ void ParagraphPropDestination::Finalize( RtfReader& oReader/*, RtfSectionPtr pSe
boost
::
algorithm
::
replace_all
(
splitted
[
i
],
L"("
,
L""
);
int
pos
=
splitted
[
i
].
find
(
L","
);
int
x
=
_wtoi
(
splitted
[
i
].
substr
(
0
,
pos
).
c_str
());
int
y
=
_wtoi
(
splitted
[
i
].
substr
(
pos
+
1
,
splitted
[
i
].
length
()
-
1
).
c_str
());
int
x
=
0
,
y
=
0
;
try
{
x
=
_wtoi
(
splitted
[
i
].
substr
(
0
,
pos
).
c_str
());
}
catch
(...){}
try
{
y
=
_wtoi
(
splitted
[
i
].
substr
(
pos
+
1
,
splitted
[
i
].
length
()
-
1
).
c_str
());
}
catch
(...){}
m_oShape
.
m_aWrapPoints
.
push_back
(
std
::
pair
<
int
,
int
>
(
x
,
y
)
);
}
...
...
@@ -2389,8 +2398,17 @@ void ParagraphPropDestination::Finalize( RtfReader& oReader/*, RtfSectionPtr pSe
boost
::
algorithm
::
replace_all
(
splitted
[
i
],
L"("
,
L""
);
int
pos
=
splitted
[
i
].
find
(
L","
);
int
x
=
_wtoi
(
splitted
[
i
].
substr
(
0
,
pos
).
c_str
());
int
y
=
_wtoi
(
splitted
[
i
].
substr
(
pos
+
1
,
splitted
[
i
].
length
()
-
1
).
c_str
());
int
x
=
0
,
y
=
0
;
try
{
x
=
_wtoi
(
splitted
[
i
].
substr
(
0
,
pos
).
c_str
());
}
catch
(...){}
try
{
y
=
_wtoi
(
splitted
[
i
].
substr
(
pos
+
1
,
splitted
[
i
].
length
()
-
1
).
c_str
());
}
catch
(...){}
m_oShape
.
m_aPVerticles
.
push_back
(
std
::
pair
<
int
,
int
>
(
x
,
y
)
);
}
...
...
@@ -2404,7 +2422,11 @@ void ParagraphPropDestination::Finalize( RtfReader& oReader/*, RtfSectionPtr pSe
for
(
int
i
=
2
;
i
<
splitted
.
size
();
i
++
)
{
int
val
=
_wtoi
(
splitted
[
i
].
c_str
());
int
val
=
0
;
try
{
val
=
_wtoi
(
splitted
[
i
].
c_str
());
}
catch
(...){}
m_oShape
.
m_aPSegmentInfo
.
push_back
(
val
);
}
...
...
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