~ubuntu-branches/ubuntu/maverick/ploticus/maverick

« back to all changes in this revision

Viewing changes to src/clickmap.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Tuckley
  • Date: 2009-02-19 18:25:44 UTC
  • Revision ID: james.westby@ubuntu.com-20090219182544-4ktd2t95ne2qzltt
Tags: 2.40-4
* Upstream Bugfix: Clickmap area tags not XHTML conformant.
* Upstream Bugfix: Controlling the last stub in a chron prefab plot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
                fprintf( fp, "<area shape=\"rect\" %s%s%c coords=\"%d,%d,%d,%d\" ",
188
188
                        (buf[0] == '\0') ? "nohref" : "href=\""   , buf,    (buf[0] == '\0' ) ? ' ' : '"',
189
189
                        box[ i ].x1 - tx, box[ i ].y1 - ty, box[ i ].x2 - tx, box[ i ].y2 - ty );
190
 
                if( titles[i] != NULL ) fprintf( fp, "title=\"%s\" %s >\n", titles[i], targetstr );
191
 
                else fprintf( fp, "%s >\n", targetstr );
 
190
                if( titles[i] != NULL ) fprintf( fp, "title=\"%s\" alt=\"%s\" %s />\n", titles[i], titles[i], targetstr );
 
191
                else fprintf( fp, "alt=\"\" %s />\n", targetstr );
192
192
                }
193
193
        }
194
194
 
285
285
                }
286
286
        strcpy( targetstr, "" ); get_targetstr( buf, targetstr );
287
287
 
 
288
 
288
289
#ifndef NOSVG
289
290
        if( PLS.device == 's' ) {
290
291
                if( titles[i] == NULL ) PLGS_clickregion( buf, "", targetstr, box[ i ].x1, box[ i ].y1, box[ i ].x2, box[ i ].y2 );
300
301
                fprintf( fp, "<area shape=\"rect\" %s%s%c coords=\"%d,%d,%d,%d\" ",
301
302
                        (buf[0] == '\0') ? "nohref" : "href=\""   , buf,    (buf[0] == '\0' ) ? ' ' : '"',
302
303
                        box[ i ].x1 - tx, box[ i ].y1 - ty, box[ i ].x2 - tx, box[ i ].y2 - ty );
303
 
                if( titles[i] != NULL ) fprintf( fp, "title=\"%s\" %s >\n", titles[i], targetstr );
304
 
                else fprintf( fp, "%s >\n", targetstr );
 
304
                if( titles[i] != NULL ) fprintf( fp, "title=\"%s\" alt=\"%s\" %s />\n", titles[i], titles[i], targetstr );
 
305
                else fprintf( fp, "alt=\"\" %s />\n", targetstr );
305
306
                }
306
307
        }
307
308