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
34f4ca79
Commit
34f4ca79
authored
Oct 12, 2016
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug with rendering shaded fills.
parent
e9f6e659
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
PdfReader/Src/GState.cpp
PdfReader/Src/GState.cpp
+14
-4
No files found.
PdfReader/Src/GState.cpp
View file @
34f4ca79
...
...
@@ -2764,7 +2764,7 @@ namespace PdfReader
oDictItem
.
Free
();
}
// [ Xmin
Xmax Ymin Ymax C1,min C1,max ... Cn,min
Cn,max ], поэтому как минимум массив должен быть из 6 элементов
// [ Xmin
Xmax Ymin Ymax C1,min C1,max ... Cn,min
Cn,max ], поэтому как минимум массив должен быть из 6 элементов
double
dXMin
,
dXMax
,
dYMin
,
dYMax
;
double
arrCMin
[
GrColorMaxComps
],
arrCMax
[
GrColorMaxComps
];
double
dXMul
,
dYMul
;
...
...
@@ -3129,7 +3129,7 @@ namespace PdfReader
double
arrCMul
[
GrColorMaxComps
];
int
nComponentsCount
=
0
;
// [ Xmin
Xmax Ymin Ymax C1,min C1,max ... Cn,min
Cn,max ], поэтому как минимум массив должен быть из 6 элементов
// [ Xmin
Xmax Ymin Ymax C1,min C1,max ... Cn,min
Cn,max ], поэтому как минимум массив должен быть из 6 элементов
if
(
pDict
->
Search
(
"Decode"
,
&
oDictItem
)
->
IsArray
()
&&
oDictItem
.
ArrayGetLength
()
>=
6
)
{
Object
oTemp
;
...
...
@@ -4420,8 +4420,18 @@ namespace PdfReader
double
arrInvCTM
[
6
];
double
dXMin
,
dYMin
,
dXMax
,
dYMax
;
double
dDet_
=
m_arrCTM
[
0
]
*
m_arrCTM
[
3
]
-
m_arrCTM
[
1
]
*
m_arrCTM
[
2
];
if
(
fabs
(
dDet_
)
<
FLT_EPSILON
)
{
*
pdXMin
=
0
;
*
pdYMin
=
0
;
*
pdXMax
=
0
;
*
pdYMax
=
0
;
return
;
}
// Обратная матрица для матрицы CTM
double
dDet
=
1
/
(
m_arrCTM
[
0
]
*
m_arrCTM
[
3
]
-
m_arrCTM
[
1
]
*
m_arrCTM
[
2
])
;
double
dDet
=
1
/
dDet_
;
arrInvCTM
[
0
]
=
m_arrCTM
[
3
]
*
dDet
;
arrInvCTM
[
1
]
=
-
m_arrCTM
[
1
]
*
dDet
;
arrInvCTM
[
2
]
=
-
m_arrCTM
[
2
]
*
dDet
;
...
...
@@ -4868,4 +4878,4 @@ namespace PdfReader
return
false
;
}
}
}
\ No newline at end of file
}
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