Package: transcriber
Version: 1.5.1.1-10
Severity: important
Tags: patch

Dear Maintainer,

In olden times, lo, many Debian releases ago, when playing audio in
transcriber, a dashed red line was visible in the audio waveform at the
point where the audio was playing or paused.  The line is no longer
visible, which sadly makes the entire program almost completely
unusable.  I have investigated and, without fully understanding the
mechanisms, have written a patch to fix the problem (also attached):

--- transcriber-1.5.1.1/src/wavfm.c.~1~ 2017-04-08 04:07:20.000000000 +0200
+++ transcriber-1.5.1.1/src/wavfm.c     2017-04-08 04:07:53.350918541 +0200
@@ -508,8 +508,8 @@
 
    /* Cursor graphic context */
    gcValues.foreground = w->cursorcolor->pixel;
-   gcValues.line_style = LineOnOffDash;
-   gcValues.dashes = 3;
+   gcValues.line_style = LineSolid;
+   gcValues.dashes = 2;
    newGC = Tk_GetGC(w->tkwin,
          GCBackground|GCForeground|GCLineStyle|GCDashList|GCGraphicsExposures,
          &gcValues);

(This makes it a solid red line instead of a dashed red line, but I
think it is not an important difference.)

/Teddy Hogeborn

-- System Information:
Debian Release: 8.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages transcriber depends on:
ii  libc6      2.19-18+deb8u7
ii  libtcl8.6  8.6.2+dfsg-2
ii  libtk8.6   8.6.2-1
ii  libx11-6   2:1.6.2-3
ii  sox        14.4.1-5
ii  tcl-snack  2.2.10.20090623-dfsg-4
ii  tcl-tclex  1.2a1-16
ii  tk         8.6.0+8

transcriber recommends no packages.

transcriber suggests no packages.

-- no debconf information

--- transcriber-1.5.1.1/src/wavfm.c.~1~	2017-04-08 04:07:20.000000000 +0200
+++ transcriber-1.5.1.1/src/wavfm.c	2017-04-08 04:07:53.350918541 +0200
@@ -508,8 +508,8 @@
 
    /* Cursor graphic context */
    gcValues.foreground = w->cursorcolor->pixel;
-   gcValues.line_style = LineOnOffDash;
-   gcValues.dashes = 3;
+   gcValues.line_style = LineSolid;
+   gcValues.dashes = 2;
    newGC = Tk_GetGC(w->tkwin,
          GCBackground|GCForeground|GCLineStyle|GCDashList|GCGraphicsExposures,
          &gcValues);

Attachment: signature.asc
Description: PGP signature

Reply via email to