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
037e2efa
Commit
037e2efa
authored
Oct 12, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docx->doct->doc- linux - цвет графики
parent
b41b5edb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
+2
-2
ASCOfficePPTXFile/Editor/Drawing/Attributes.h
ASCOfficePPTXFile/Editor/Drawing/Attributes.h
+1
-1
Common/DocxFormat/Source/XML/Utils.h
Common/DocxFormat/Source/XML/Utils.h
+5
-5
No files found.
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
View file @
037e2efa
...
...
@@ -258,7 +258,7 @@ namespace NS_DWC_Common
{
if
(
colorStr
.
GetLength
()
==
4
)
{
int
lColor
=
XmlUtils
::
GetColor
(
colorStr
.
Mid
(
1
,
3
));
int
lColor
=
XmlUtils
::
GetColor
BGR
(
colorStr
.
Mid
(
1
,
3
));
BYTE
lB
=
((
lColor
>>
16
)
&
0x0F
);
BYTE
lG
=
((
lColor
>>
20
)
&
0x0F
);
BYTE
lR
=
((
lColor
>>
8
)
&
0x0F
);
...
...
@@ -270,7 +270,7 @@ namespace NS_DWC_Common
}
else
{
int
lColor
=
XmlUtils
::
GetColor
(
colorStr
.
Mid
(
1
,
6
));
int
lColor
=
XmlUtils
::
GetColor
BGR
(
colorStr
.
Mid
(
1
,
6
));
color
.
R
=
(
BYTE
)(
lColor
>>
0
);
color
.
G
=
(
BYTE
)(
lColor
>>
8
);
color
.
B
=
(
BYTE
)(
lColor
>>
16
);
...
...
ASCOfficePPTXFile/Editor/Drawing/Attributes.h
View file @
037e2efa
...
...
@@ -449,7 +449,7 @@ namespace NSPresentationEditor
int
lColor
;
if
(
str
.
Find
(
_T
(
"#"
))
==
0
)
{
lColor
=
XmlUtils
::
GetColor
(
str
.
Mid
(
1
,
6
));
lColor
=
XmlUtils
::
GetColor
BGR
(
str
.
Mid
(
1
,
6
));
R
=
(
BYTE
)(
lColor
);
G
=
(
BYTE
)(
lColor
>>
8
);
B
=
(
BYTE
)(
lColor
>>
16
);
...
...
Common/DocxFormat/Source/XML/Utils.h
View file @
037e2efa
...
...
@@ -78,7 +78,7 @@ namespace XmlUtils
return
nResult
;
}
AVSINLINE
static
int
GetColor
(
const
CString
&
string
)
AVSINLINE
static
int
GetColorBGR
(
const
CString
&
string
)
{
// variables
int
blue
=
0
;
...
...
@@ -99,7 +99,7 @@ namespace XmlUtils
green
=
16
*
GetDigit
(
color
[
2
])
+
GetDigit
(
color
[
3
]);
blue
=
16
*
GetDigit
(
color
[
4
])
+
GetDigit
(
color
[
5
]);
return
RGB
(
red
,
green
,
blue
);
return
((
int
)(((
BYTE
)(
red
)
|
((
WORD
)((
BYTE
)(
green
))
<<
8
))
|
(((
DWORD
)(
BYTE
)(
blue
))
<<
16
)));
//
RGB(red, green, blue);
}
AVSINLINE
static
bool
GetBoolean
(
const
CString
&
string
)
{
...
...
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