Bug 148570

Summary: Error rendering image when changing contemporary src, width and height
Product: [Applications] konqueror Reporter: Enrico Oltolina <enrico.oltolina>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kollix
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description Enrico Oltolina 2007-08-06 12:42:59 UTC
Version:            (using KDE KDE 3.5.7)
Installed from:    Unspecified Linux
OS:                Linux

I defined an img in my page like this:
<img src="img/trasp.gif" width="110" height="82" id="imgPreviewId">
If using javascript an image is loaded, and inserted in imgPreviewId with 
the following commands, all it works:
imgPreviewObj = document.getElementById("imgPreviewId");
imgPreviewObj.src = "...";
imgPreviewObj.width=...;
imgPreviewObj.height=...;

Warning: the width and height set are different from original image size, the idea is to obtain a preview, so the image is resized.

After that another image is loaded, with different src and size: the image doesn't change! It seems that the new image is not loaded. But all it works if only the src is changed, while width and height are not changed.
I tried to change the render_image.cpp file, and I cleaned the resizeCache when a needLayout is set to true, and so it works.
Comment 1 Martin Koller 2011-06-26 16:31:37 UTC
If you can reproduce with current KDE (>= 4.6.4), please reopen and attach a complete testcase.