switch() without break in dxf-export.c
- From: hma syd odn ne jp
- To: dia-list gnome org
- Subject: switch() without break in dxf-export.c
- Date: Sat, 21 Aug 2004 03:05:44 GMT
Hi,
now seems all texts are centered in exported DXF files.
Here is a patch.
--- dxf-export.c.orig 2004-08-16 16:56:18.000000000 +0900
+++ dxf-export.c 2004-08-21 12:02:31.000000000 +0900
@@ -471,10 +471,13 @@
switch(alignment) {
case ALIGN_LEFT :
fprintf(renderer->file, " 72\n%d\n", 0);
+ break;
case ALIGN_RIGHT :
fprintf(renderer->file, " 72\n%d\n", 2);
+ break;
case ALIGN_CENTER :
fprintf(renderer->file, " 72\n%d\n", 1);
+ break;
}
fprintf(renderer->file, " 7\n%s\n", "0"); /* Text style */
fprintf(renderer->file, " 1\n%s\n", text);
--------------------------------------------------
Takeshi Hamasaki
E-mail: hma syd odn ne jp
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]