Cannot path a file

The patch is as follows:

   1. --- src/cmds/cmds.cpp        2008-01-14 05:16:21.000000000 +0300  
   2. +++ src/cmds/cmds.cpp    2010-09-14 20:39:46.933978940 +0400  
   3. @@ -88,8 +88,8 @@  
   4.         SecCmd="BlankCommand";  
   5.  
   6.   
   7. -       setPaletteBackgroundColor ( QColor::QColor (170,170,255));  
   8. -       setPaletteForegroundColor ( QColor::QColor (0,0,0));  
   9. +       setPaletteBackgroundColor ( QColor (170,170,255));  
  10. +       setPaletteForegroundColor ( QColor (0,0,0));  
  11.  
  12.   
  13.         cmdlist.insert(tr("l"),                 new int(CMDDRAWLINE));  

(https://build.opensuse.org/package/view_file?file=gccpatch.diff&package=autoq3d-ce&project=home%3AAnsus%3AKDE3&srcmd5=46452ec301f17e62f887ed4052ec583a )

I made it with a diff utility myself. But when patching in OBS I see the following error:

1 out of 1 hunk FAILED -- saving rejects to file src/cmds/cmds.cpp.rej
error: Bad exit status from /var/tmp/rpm-tmp.MTYe4o (%prep)

Hi
Might pay to call the changed file .orig that’s what I always use,
anyway there are other fixes required!

See request id 48162


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.19-0.2-default
up 19:14, 4 users, load average: 0.08, 0.67, 0.80
GPU GeForce 8600 GTS Silent - Driver Version: 256.53

Weird stuff on OBS, the whole patch file never came through;

Grab it from here;
https://build.opensuse.org/package/view_file?file=gccpatch.diff&package=autoq3d-ce&project=home%3Amalcolmlewis%3Abranches%3Ahome%3AAnsus%3AKDE3&srcmd5=737bee48af7b2eacc01419ba25417127


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.19-0.2-default
up 19:18, 4 users, load average: 0.18, 0.37, 0.63
GPU GeForce 8600 GTS Silent - Driver Version: 256.53

Thank you very much, Malcolm. Maybe indeed the problem was with the .orig extention.