From: Michal H. <ms...@gm...> - 2011-12-04 12:19:14
|
Hi, sorry it took so long, but I didn't have much time recently. On Fri, Jun 24, 2011 at 09:40:00AM +0200, Michal Hocko wrote: > Hi, > > On Thu, Jun 23, 2011 at 02:32:16PM -0700, Eva Pešková wrote: > > Sure. > > > > it's method "virtual CStream* _newInstance () const" > > Could you send a patch in an unified diff format instead with a change > description, please. This will make the review and application much > easier. Here is the patch I am going to push right now: --- >From ff9b82448c259818b8ffe1c3361bc893bf2cc691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eva=20Pe=C5=A1kov=C3=A1?= <car...@gm...> Date: Sun, 4 Dec 2011 13:13:40 +0100 Subject: [PATCH] kernel: InlineImageCompositePdfOperator clone fix Make sure we copy width and height attributes when we are cloning the object. --- src/kernel/cinlineimage.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/kernel/cinlineimage.h b/src/kernel/cinlineimage.h index 3299c9a..10c958f 100644 --- a/src/kernel/cinlineimage.h +++ b/src/kernel/cinlineimage.h @@ -104,7 +104,12 @@ protected: * @return New instance of inline image. */ virtual CStream* _newInstance () const - { return new CInlineImage; } + { + CInlineImage * i = new CInlineImage; + i->_height = _height; + i->_width = _width; + return i; + } // -- 1.7.7.3 -- Michal Hocko |