[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Problem compiling kdebase/kcontrol/kfontinst
From:       "Jorge Bernal \"Koke\"" <koke () sindominio ! net>
Date:       2004-05-05 23:42:56
Message-ID: 200405060142.56999.koke () sindominio ! net
[Download RAW message or body]

OK, now it compiles, thanks :)

I attach the patch:


On Jueves, 6 de Mayo de 2004 00:48, Adriaan de Groot wrote:
> On Thursday 06 May 2004 00:41, Jorge Bernal wrote:
> > QString psName=famIsPs ? itsFamily : FT_Get_Postscript_Name(itsFt.face);
>
> One is probably a QString and the other a const char *. A possible solution
> is
>
> QString psName=famIsPs ? itsFamily :
> QString(FT_Get_Postscript_Name(itsFt.face));
>
> (untried, random guess)

-- 
"Sólo el éxito diferencia al genio del loco"

Blog: http://www.amedias.org/koke
Web Personal: http://sindominio.net/~koke/
JID: koke@zgzjabber.ath.cx

["kdebase-cvs-qstring-fix-20040506" (text/x-diff)]

Index: FontEngine.cpp
===================================================================
RCS file: /home/kde/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp,v
retrieving revision 1.22
diff -u -3 -p -r1.22 FontEngine.cpp
--- FontEngine.cpp      30 Apr 2004 21:42:28 -0000      1.22
+++ FontEngine.cpp      5 May 2004 23:30:23 -0000
@@ -1253,7 +1253,7 @@ bool CFontEngine::openFontT1(const QStri
                 //
                 // Algorithm taken from ttf2pt1.c ...
                 //
-                QString psName=famIsPs ? itsFamily : FT_Get_Postscript_Name(itsFt.face);
+                QString psName=famIsPs ? itsFamily : QString(FT_Get_Postscript_Name(itsFt.face));

                 if(psName.isEmpty())
                     psName=itsFullName;
@@ -1424,7 +1424,7 @@ bool CFontEngine::openFontTT(const QStri
                 //
                 // Algorithm taken from ttf2pt1.c ...
                 //
-                QString psName=famIsPs ? itsFamily : FT_Get_Postscript_Name(itsFt.face);
+                QString psName=famIsPs ? itsFamily : QString(FT_Get_Postscript_Name(itsFt.face));

                 if(psName.isEmpty())
                     psName=itsFullName;


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic