Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
poppler
poppler
Commits
c9b467da
Commit
c9b467da
authored
Mar 22, 2007
by
Albert Astals Cid
Browse files
* poppler/Gfx.cc: Accept reals for width and height of images. Fixes
KDE bug 143322
parent
ff8f8d44
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
c9b467da
2007-03-22 Albert Astals Cid <aacid@kde.org>
* poppler/Gfx.cc: Accept reals for width and height of images. Fixes
KDE bug 143322
2007-03-15 Albert Astals Cid <aacid@kde.org>
* glib/Makefile.am: Make it build with BSD/Make. Patch by
...
...
poppler/Gfx.cc
View file @
c9b467da
...
...
@@ -2955,18 +2955,24 @@ void Gfx::doImage(Object *ref, Stream *str, GBool inlineImg) {
obj1
.
free
();
dict
->
lookup
(
"W"
,
&
obj1
);
}
if
(
!
obj1
.
isInt
())
if
(
obj1
.
isInt
())
width
=
obj1
.
getInt
();
else
if
(
obj1
.
isReal
())
width
=
(
int
)
obj1
.
getReal
();
else
goto
err2
;
width
=
obj1
.
getInt
();
obj1
.
free
();
dict
->
lookup
(
"Height"
,
&
obj1
);
if
(
obj1
.
isNull
())
{
obj1
.
free
();
dict
->
lookup
(
"H"
,
&
obj1
);
}
if
(
!
obj1
.
isInt
())
if
(
obj1
.
isInt
())
height
=
obj1
.
getInt
();
else
if
(
obj1
.
isReal
())
height
=
(
int
)
obj1
.
getReal
();
else
goto
err2
;
height
=
obj1
.
getInt
();
obj1
.
free
();
// image or mask?
...
...
Write
Preview
Supports
Markdown
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