I tested this minimal patch:

--- w_drawprim.c.orig   2014-06-11 17:23:29.348481192 -0600
+++ w_drawprim.c        2014-06-11 17:23:34.736481307 -0600
@@ -1292,7 +1292,7 @@
 }
 
 
-static unsigned char dash_list[16][2] = {{255, 255}, {255, 255},
+static unsigned char dash_list[16][8] = {{255, 255}, {255, 255},
                                        {255, 255}, {255, 255},
                                        {255, 255}, {255, 255},
                                        {255, 255}, {255, 255},

...which is simply to change the 2 in line 1295 to an 8; it seems to
work. How did work before? The following loop accesses data in that
array to a index ndash_3dot( which is 8), and it was never dimensioned
like that. The initialization seems not so important after the first two
data, if ever.


** Patch added: "my_xfig_patch.patch"
   
https://bugs.launchpad.net/ubuntu/+source/xfig/+bug/1317825/+attachment/4129958/+files/my_xfig_patch.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1317825

Title:
  The -..- and -.- line styles are broken

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfig/+bug/1317825/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to