[Kde-imaging] [Bug 127219] Creation of mpeg slide show fails

Tom Albers tomalbers at kde.nl
Mon May 15 21:35:40 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=127219         
tomalbers kde nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From tomalbers kde nl  2006-05-15 21:35 -------
SVN commit 541235 by toma:

Always return two numbers for r,g and b, else image2mpg will fail. Maybe this is the root of all evil for a long time?
BUG: 127219


 M  +3 -3      kimg2mpg.cpp  


--- trunk/extragear/libs/kipi-plugins/mpegencoder/kimg2mpg.cpp #541234:541235
 @ -816,11 +816,11  @
   BackGroundColor = m_BackgroundColorButton->color();
   HexColor = "";
   Temp.setNum (BackGroundColor.red(), 16);
-  HexColor = HexColor + Temp;
+  HexColor = HexColor + Temp.rightJustify(2,'0');
   Temp.setNum (BackGroundColor.green(), 16);
-  HexColor = HexColor + Temp;
+  HexColor = HexColor + Temp.rightJustify(2,'0');
   Temp.setNum (BackGroundColor.blue(), 16);
-  HexColor = HexColor + Temp;
+  HexColor = HexColor + Temp.rightJustify(2,'0');
 
   // This is for debuging output in debug dialog box.


More information about the Kde-imaging mailing list