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
fa98f22e
Commit
fa98f22e
authored
Nov 03, 2017
by
Sergey Konovalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed crush on Revision:
069544bf
parent
e01c09bc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
17 deletions
+14
-17
ASCOfficeDocxFile2/BinReader/ReaderClasses.h
ASCOfficeDocxFile2/BinReader/ReaderClasses.h
+3
-6
ASCOfficeDocxFile2/BinReader/Readers.h
ASCOfficeDocxFile2/BinReader/Readers.h
+11
-11
No files found.
ASCOfficeDocxFile2/BinReader/ReaderClasses.h
View file @
fa98f22e
...
...
@@ -355,16 +355,13 @@ class Tab
public:
BYTE
Val
;
double
Pos
;
BYTE
*
Leader
;
BYTE
Leader
;
bool
bLeader
;
Tab
()
{
Val
=
shd_Nil
;
Pos
=
0
;
Leader
=
NULL
;
}
~
Tab
()
{
RELEASEOBJECT
(
Leader
);
bLeader
=
false
;
}
};
class
Tabs
...
...
ASCOfficeDocxFile2/BinReader/Readers.h
View file @
fa98f22e
...
...
@@ -828,18 +828,18 @@ public:
default:
sVal
=
L"left"
;
break
;
}
pCStringWriter
->
WriteString
(
L"<w:tab w:val=
\"
"
+
sVal
+
L"
\"
w:pos=
\"
"
+
std
::
to_wstring
(
nTab
)
+
L"
\"
"
);
if
(
NULL
!=
oTab
.
Leader
)
if
(
oTab
.
b
Leader
)
{
std
::
wstring
sLeader
;
switch
(
*
oTab
.
Leader
)
switch
(
oTab
.
Leader
)
{
case
SimpleTypes
:
:
tabtlcDot
:
sLeader
=
(
L"dot"
);
case
SimpleTypes
:
:
tabtlcHeavy
:
sLeader
=
(
L"heavy"
);
case
SimpleTypes
:
:
tabtlcHyphen
:
sLeader
=
(
L"hyphen"
);
case
SimpleTypes
:
:
tabtlcMiddleDot
:
sLeader
=
(
L"middleDot"
);
case
SimpleTypes
:
:
tabtlcNone
:
sLeader
=
(
L"none"
);
case
SimpleTypes
:
:
tabtlcUnderscore
:
sLeader
=
(
L"underscore"
);
default
:
sLeader
=
(
L"none"
);
case
SimpleTypes
:
:
tabtlcDot
:
sLeader
=
(
L"dot"
);
break
;
case
SimpleTypes
:
:
tabtlcHeavy
:
sLeader
=
(
L"heavy"
);
break
;
case
SimpleTypes
:
:
tabtlcHyphen
:
sLeader
=
(
L"hyphen"
);
break
;
case
SimpleTypes
:
:
tabtlcMiddleDot
:
sLeader
=
(
L"middleDot"
);
break
;
case
SimpleTypes
:
:
tabtlcNone
:
sLeader
=
(
L"none"
);
break
;
case
SimpleTypes
:
:
tabtlcUnderscore
:
sLeader
=
(
L"underscore"
);
break
;
default
:
sLeader
=
(
L"none"
);
break
;
}
pCStringWriter
->
WriteString
(
L" w:leader=
\"
"
+
sLeader
+
L"
\"
"
);
}
...
...
@@ -1026,8 +1026,8 @@ public:
poTabItem
->
Pos
=
m_oBufferedStream
.
GetDouble
();
else
if
(
c_oSerProp_pPrType
::
Tab_Item_Leader
==
type
)
{
poTabItem
->
Leader
=
new
BYTE
;
*
poTabItem
->
Leader
=
m_oBufferedStream
.
GetUChar
();
poTabItem
->
bLeader
=
true
;
poTabItem
->
Leader
=
m_oBufferedStream
.
GetUChar
();
}
else
res
=
c_oSerConstants
::
ReadUnknown
;
...
...
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