Comment 3 for bug 167002

Revision history for this message
Bug Importer (bug-importer) wrote :

Okay, here is an update. I looked into this method again and
found the bug. It is located in the first while statement.
The i++ appears too early. Hope that I could help.

Best regards,

Christian

Here is the patch to correct this bug:

--- inkscape-0.43_old/src/extension/internal/ps.cpp
2005-10-20 06:43:21.000000000 +0200
+++ inkscape-0.43_new/src/extension/internal/ps.cpp
2006-02-23 16:05:22.000000000 +0100
@@ -692,9 +692,9 @@
         style->stroke_dash.dash ) {
         int i = 0;
         while (LineSolid && (i < style->stroke_dash.n_dash)) {
- i++;
                 if (style->stroke_dash.dash[i] > 0.00000001)
                     LineSolid = false;
+ i++;
         }
         if (!LineSolid) {
             os << "[";