+ case wxUSER_DASH:
+ {
+ // It may be noted that libgnomeprint between at least
+ // versions 2.8.0 and 2.12.1 makes a copy of the dashes
+ // and then leak the memory since it doesn't set the
+ // internal flag "privatedash" to 0.
+ wxDash *wx_dashes;
+ int num = m_pen.GetDashes (&wx_dashes);
+ gdouble *g_dashes = g_new( gdouble, num );
+ int i;
+ for (i = 0; i < num; ++i)
+ g_dashes[i] = (gdouble) wx_dashes[i];
+ gs_lgp -> gnome_print_setdash( m_gpc, num, g_dashes, 0);
+ g_free( g_dashes );
+ }
+ break;