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
43a9a0e3
Commit
43a9a0e3
authored
Jul 20, 2016
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrong Fill type
parent
fc30117c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
+21
-0
No files found.
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
View file @
43a9a0e3
...
...
@@ -3459,6 +3459,7 @@ void CDrawingConverter::CheckBrushShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils
pSolid
->
Color
.
Color
=
new
PPTX
::
Logic
::
SrgbClr
();
pSolid
->
Color
.
Color
->
SetRGB
(
color
.
R
,
color
.
G
,
color
.
B
);
pShape
->
spPr
.
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
solidFill
;
pShape
->
spPr
.
Fill
.
Fill
=
pSolid
;
}
else
if
(
!
pPPTShape
->
IsWordArt
())
...
...
@@ -3469,6 +3470,7 @@ void CDrawingConverter::CheckBrushShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils
pSolid
->
Color
.
Color
=
new
PPTX
::
Logic
::
SrgbClr
();
pSolid
->
Color
.
Color
->
SetRGB
(
R
,
G
,
B
);
pShape
->
spPr
.
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
solidFill
;
pShape
->
spPr
.
Fill
.
Fill
=
pSolid
;
}
...
...
@@ -3480,6 +3482,8 @@ void CDrawingConverter::CheckBrushShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils
{
PPTX
::
Logic
::
NoFill
*
pNoFill
=
new
PPTX
::
Logic
::
NoFill
();
pNoFill
->
m_namespace
=
_T
(
"a"
);
pShape
->
spPr
.
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
noFill
;
pShape
->
spPr
.
Fill
.
Fill
=
pNoFill
;
}
}
...
...
@@ -3487,6 +3491,8 @@ void CDrawingConverter::CheckBrushShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils
{
PPTX
::
Logic
::
NoFill
*
pNoFill
=
new
PPTX
::
Logic
::
NoFill
();
pNoFill
->
m_namespace
=
_T
(
"a"
);
pShape
->
spPr
.
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
noFill
;
pShape
->
spPr
.
Fill
.
Fill
=
pNoFill
;
}
...
...
@@ -3526,6 +3532,7 @@ void CDrawingConverter::CheckBrushShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils
pSolid
->
Color
.
Color
=
new
PPTX
::
Logic
::
SrgbClr
();
pSolid
->
Color
.
Color
->
SetRGB
(
color
.
R
,
color
.
G
,
color
.
B
);
pShape
->
spPr
.
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
solidFill
;
pShape
->
spPr
.
Fill
.
Fill
=
pSolid
;
if
(
!
sFillColor
.
is_init
())
...
...
@@ -3547,6 +3554,7 @@ void CDrawingConverter::CheckBrushShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils
pBlipFill
->
tile
=
new
PPTX
::
Logic
::
Tile
();
}
pShape
->
spPr
.
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
blipFill
;
pShape
->
spPr
.
Fill
.
Fill
=
pBlipFill
;
}
nullable_string
sRotate
;
...
...
@@ -3628,6 +3636,7 @@ void CDrawingConverter::CheckBrushShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils
if
(
*
sRotate
==
L"r"
)
pGradFill
->
lin
->
ang
=
180
*
60000
;
}
pShape
->
spPr
.
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
gradFill
;
pShape
->
spPr
.
Fill
.
Fill
=
pGradFill
;
}
...
...
@@ -3690,6 +3699,7 @@ void CDrawingConverter::CheckBrushShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils
}
pShape
->
spPr
.
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
blipFill
;
pShape
->
spPr
.
Fill
.
Fill
=
pBlipFill
;
CString
strCropT
=
oNodeFillID
.
GetAttribute
(
_T
(
"croptop"
));
...
...
@@ -3738,6 +3748,8 @@ void CDrawingConverter::CheckBrushShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils
{
PPTX
::
Logic
::
NoFill
*
pNoFill
=
new
PPTX
::
Logic
::
NoFill
();
pNoFill
->
m_namespace
=
_T
(
"a"
);
pShape
->
spPr
.
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
noFill
;
pShape
->
spPr
.
Fill
.
Fill
=
pNoFill
;
}
else
...
...
@@ -3746,6 +3758,8 @@ void CDrawingConverter::CheckBrushShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils
pSolid
->
m_namespace
=
_T
(
"a"
);
pSolid
->
Color
.
Color
=
new
PPTX
::
Logic
::
SrgbClr
();
pSolid
->
Color
.
Color
->
SetRGB
(
0xFF
,
0xFF
,
0xFF
);
pShape
->
spPr
.
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
solidFill
;
pShape
->
spPr
.
Fill
.
Fill
=
pSolid
;
if
(
sOpacity
.
is_init
())
...
...
@@ -3778,6 +3792,8 @@ void CDrawingConverter::CheckPenShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils::
pSolid
->
m_namespace
=
_T
(
"a"
);
pSolid
->
Color
.
Color
=
new
PPTX
::
Logic
::
SrgbClr
();
pSolid
->
Color
.
Color
->
SetRGB
(
color
.
R
,
color
.
G
,
color
.
B
);
pShape
->
spPr
.
ln
->
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
solidFill
;
pShape
->
spPr
.
ln
->
Fill
.
Fill
=
pSolid
;
}
...
...
@@ -3809,6 +3825,7 @@ void CDrawingConverter::CheckPenShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils::
if
(
!
pShape
->
spPr
.
ln
.
is_init
())
pShape
->
spPr
.
ln
=
new
PPTX
::
Logic
::
Ln
();
pShape
->
spPr
.
ln
->
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
noFill
;
pShape
->
spPr
.
ln
->
Fill
.
Fill
=
new
PPTX
::
Logic
::
NoFill
();
}
}
...
...
@@ -3817,6 +3834,7 @@ void CDrawingConverter::CheckPenShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils::
if
(
!
pShape
->
spPr
.
ln
.
is_init
())
pShape
->
spPr
.
ln
=
new
PPTX
::
Logic
::
Ln
();
pShape
->
spPr
.
ln
->
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
noFill
;
pShape
->
spPr
.
ln
->
Fill
.
Fill
=
new
PPTX
::
Logic
::
NoFill
();
}
...
...
@@ -3837,6 +3855,7 @@ void CDrawingConverter::CheckPenShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils::
pSolid
->
Color
.
Color
=
new
PPTX
::
Logic
::
SrgbClr
();
pSolid
->
Color
.
Color
->
SetRGB
(
color
.
R
,
color
.
G
,
color
.
B
);
pShape
->
spPr
.
ln
->
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
solidFill
;
pShape
->
spPr
.
ln
->
Fill
.
Fill
=
pSolid
;
}
...
...
@@ -4048,6 +4067,8 @@ void CDrawingConverter::CheckPenShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils::
pSolid
->
m_namespace
=
_T
(
"a"
);
pSolid
->
Color
.
Color
=
new
PPTX
::
Logic
::
SrgbClr
();
pSolid
->
Color
.
Color
->
SetRGB
(
0
,
0
,
0
);
pShape
->
spPr
.
ln
->
Fill
.
m_type
=
PPTX
::
Logic
::
UniFill
::
solidFill
;
pShape
->
spPr
.
ln
->
Fill
.
Fill
=
pSolid
;
}
}
...
...
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