jeremyletang / rgtk

GTK+ bindings and wrappers for Rust (DEPRECATED SEE https://github.com/rust-gnome )
GNU Lesser General Public License v3.0
121 stars 22 forks source link

assertion in cairotest example fails #258

Closed bombless closed 9 years ago

bombless commented 9 years ago

cargo run --bin cairotest results in

     Running `target\debug\cairotest.exe`
thread '<main>' panicked at 'assertion failed: `(left == right) && (right == left)` (left: `([3, 2, 1], 6)`, right: `([3, 2, 1], 42)`)', src\cairotest.rs:21
An unknown error occurred
gkoz commented 9 years ago

This:

    /* The dashing code doesn't like a negative offset or a big positive
     * offset, so we compute an equivalent offset which is guaranteed to be
     * positive and less than twice the pattern length. */

The offset of 42 there is excessively incorrect.

GuillaumeGomez commented 9 years ago

@bombless: thanks for your report !