git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
30d759d
)
fixed stream corruption bug after soft masked images (Bug #10)
author
kramm
<kramm>
Sun, 22 Jan 2006 13:51:25 +0000
(13:51 +0000)
committer
kramm
<kramm>
Sun, 22 Jan 2006 13:51:25 +0000
(13:51 +0000)
pdf2swf/SWFOutputDev.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
b0bc202
..
950f4eb
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-2274,7
+2274,7
@@
void SWFOutputDev::drawGeneralImage(GfxState *state, Object *ref, Stream *str,
ncomps = colorMap->getNumPixelComps();
bits = colorMap->getBits();
}
ncomps = colorMap->getNumPixelComps();
bits = colorMap->getBits();
}
-
+
if(maskStr) {
int x,y;
unsigned char buf[8];
if(maskStr) {
int x,y;
unsigned char buf[8];
@@
-2310,8
+2310,9
@@
void SWFOutputDev::drawGeneralImage(GfxState *state, Object *ref, Stream *str,
}
delete imgMaskStr;
}
}
delete imgMaskStr;
}
+ maskStr->close();
}
}
-
+
imgStr = new ImageStream(str, width, ncomps,bits);
imgStr->reset();
imgStr = new ImageStream(str, width, ncomps,bits);
imgStr->reset();
@@
-2335,6
+2336,7
@@
void SWFOutputDev::drawGeneralImage(GfxState *state, Object *ref, Stream *str,
state->transform(1, 0, &x3, &y3); x3 += user_movex; y3 += user_movey;
state->transform(1, 1, &x4, &y4); x4 += user_movex; y4 += user_movey;
state->transform(1, 0, &x3, &y3); x3 += user_movex; y3 += user_movey;
state->transform(1, 1, &x4, &y4); x4 += user_movex; y4 += user_movey;
+
if(!pbminfo && !(str->getKind()==strDCT)) {
if(!type3active) {
msg("<notice> file contains pbm pictures %s",mask?"(masked)":"");
if(!pbminfo && !(str->getKind()==strDCT)) {
if(!type3active) {
msg("<notice> file contains pbm pictures %s",mask?"(masked)":"");