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
b45e772a
Commit
b45e772a
authored
Dec 01, 2017
by
Sergey Konovalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove stub for hyperlink without link
parent
fdb7716a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
ASCOfficeDocxFile2/BinWriter/BinWriters.h
ASCOfficeDocxFile2/BinWriter/BinWriters.h
+9
-14
No files found.
ASCOfficeDocxFile2/BinWriter/BinWriters.h
View file @
b45e772a
...
...
@@ -3744,7 +3744,6 @@ namespace BinDocxRW
void
WriteHyperlink
(
OOX
::
Logic
::
CHyperlink
*
pHyperlink
)
{
int
nCurPos
=
0
;
std
::
wstring
sField
;
std
::
wstring
sLink
;
if
(
pHyperlink
->
m_oId
.
IsInit
())
{
...
...
@@ -3757,24 +3756,20 @@ namespace BinDocxRW
}
}
if
(
!
sLink
.
empty
())
{
nCurPos
=
m_oBcw
.
WriteItemStart
(
c_oSerParType
::
Hyperlink
);
WriteHyperlinkContent
(
sLink
,
pHyperlink
);
m_oBcw
.
WriteItemWithLengthEnd
(
nCurPos
);
}
else
{
WriteParagraphContent
(
pHyperlink
->
m_arrItems
,
true
);
}
nCurPos
=
m_oBcw
.
WriteItemStart
(
c_oSerParType
::
Hyperlink
);
WriteHyperlinkContent
(
sLink
,
pHyperlink
);
m_oBcw
.
WriteItemWithLengthEnd
(
nCurPos
);
}
void
WriteHyperlinkContent
(
std
::
wstring
&
sLink
,
OOX
::
Logic
::
CHyperlink
*
pHyperlink
)
{
int
nCurPos
=
0
;
//Link
nCurPos
=
m_oBcw
.
WriteItemStart
(
c_oSer_HyperlinkType
::
Link
);
m_oBcw
.
m_oStream
.
WriteStringW3
(
sLink
);
m_oBcw
.
WriteItemWithLengthEnd
(
nCurPos
);
if
(
!
sLink
.
empty
())
{
nCurPos
=
m_oBcw
.
WriteItemStart
(
c_oSer_HyperlinkType
::
Link
);
m_oBcw
.
m_oStream
.
WriteStringW3
(
sLink
);
m_oBcw
.
WriteItemWithLengthEnd
(
nCurPos
);
}
//Anchor
if
(
pHyperlink
->
m_sAnchor
.
IsInit
())
{
...
...
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