problem pstricks still exists in v0.95+cvs
- From: YONG WANG <troicy yahoo com>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: problem pstricks still exists in v0.95+cvs
- Date: Thu, 30 Nov 2006 05:27:48 -0800 (PST)
Problem: I export *.dia as pstricks *.tex file and include it in
my latex file. Here is the error when I try to compile it
\psset{linecolor=dialinecolor}
\psellipse(10.005203,3.225827)(1.644797,1.174173)
\setfont{Helvetica}{1.300000}
\newrgbcolor{dialinecolor}{0.000000 0.000000 0.000000}
\psset{linecolor=dialinecolor}
\rput[l](9.240203,-3.518327){\psscalebox{1 -1}{\$y\$}}
}\endpspicture
ERROR: Illegal unit of measure (pt inserted).
so changing to \psscalebox has not solved the problem.
Lars Clausen <lars raeder dk> wrote:
On Wed, 2006-11-29 at 04:13 -0800, YONG WANG wrote:
> I check xxx.pc again for pango, libart and gtk, the version numbers
> are:
> pango: 1.12.0
> libart: 2.3.17
>
> for gtk+ I found two xxx.pc files,
>
> gtk+.pc shows
1.2.10
> gtk+-2.0.pc shows 2.8.15
Ok, with the help from the stack trace that Torben sent, I have found
the problem (even though it wasn't what I thought it was yesterday. The
patch below should fix it, if you cannot wait for tomorrows anoncvs
update.
-Lars
Index: lib/text.c
===================================================================
RCS file: /cvs/gnome/dia/lib/text.c,v
retrieving revision 1.63
diff -u -b -B -r1.63 text.c
--- lib/text.c 29 Nov 2006 11:29:35 -0000 1.63
+++ lib/text.c 30 Nov 2006 06:12:32 -0000
@@ -629,6 +629,8 @@
real height = text->ascent+text->descent;
curs_y = text->position.y - text->ascent + text->cursor_row*text->height;
+ DIA_RENDERER_GET_CLASS(renderer)->set_font(renderer, text->font, text->height);
+
str_width_first =
DIA_RENDERER_GET_CLASS(renderer)->get_text_width(renderer,
text_get_line(text, text->cursor_row),
_______________________________________________
Dia-list mailing list
Dia-list gnome org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia
Access over 1 million songs -
Yahoo! Music Unlimited.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]