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
7887f3e8
Commit
7887f3e8
authored
Sep 28, 2016
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error with open w:sym elem
parent
e3f331c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
ASCOfficeDocxFile2/BinWriter/BinWriters.h
ASCOfficeDocxFile2/BinWriter/BinWriters.h
+9
-5
No files found.
ASCOfficeDocxFile2/BinWriter/BinWriters.h
View file @
7887f3e8
...
...
@@ -3352,6 +3352,11 @@ namespace BinDocxRW
int
nIndexStart
=
0
;
int
nLength
=
m_arrItems
.
size
();
bool
bWasText
=
false
;
int
nRecordType
;
if
(
bMathRun
)
nRecordType
=
c_oSer_OMathContentType
::
Run
;
else
nRecordType
=
c_oSerParType
::
Run
;
//Разбиваем массив по знаку et_w_sym
for
(
int
i
=
0
;
i
<
nLength
;
++
i
)
{
...
...
@@ -3361,9 +3366,11 @@ namespace BinDocxRW
if
(
bWasText
)
{
bWasText
=
false
;
nCurPos
=
m_oBcw
.
WriteItemStart
(
nRecordType
);
WritePreparedRun
(
m_arrItems
,
bHyperlink
,
nIndexStart
,
i
);
m_oBcw
.
WriteItemWithLengthEnd
(
nCurPos
);
}
nCurPos
=
m_oBcw
.
WriteItemStart
(
c_oSerParType
::
Run
);
nCurPos
=
m_oBcw
.
WriteItemStart
(
nRecordType
);
WritePreparedRun
(
m_arrItems
,
bHyperlink
,
i
,
i
+
1
);
m_oBcw
.
WriteItemWithLengthEnd
(
nCurPos
);
nIndexStart
=
i
+
1
;
...
...
@@ -3373,10 +3380,7 @@ namespace BinDocxRW
}
if
(
nIndexStart
<
nLength
)
{
if
(
bMathRun
)
nCurPos
=
m_oBcw
.
WriteItemStart
(
c_oSer_OMathContentType
::
Run
);
else
nCurPos
=
m_oBcw
.
WriteItemStart
(
c_oSerParType
::
Run
);
nCurPos
=
m_oBcw
.
WriteItemStart
(
nRecordType
);
WritePreparedRun
(
m_arrItems
,
bHyperlink
,
nIndexStart
,
nLength
);
m_oBcw
.
WriteItemWithLengthEnd
(
nCurPos
);
}
...
...
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