Changeset 6719


Ignore:
Timestamp:
Sep 6, 2008, 1:32:15 AM (13 years ago)
Author:
charles
Message:

(gtk) #1259: GLib-GObject-WARNING : value "-100" of type gint' is invalid or out of range for property value' of type `gint'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/torrent-cell-renderer.c

    r6474 r6719  
    452452        if( 1 )
    453453        {
    454             g_object_set( p->progress_renderer, "value", (int)(torStat->percentDone*100.0),
     454            const double percent = MAX( 0.0, torStat->percentDone );
     455            g_object_set( p->progress_renderer, "value", (int)(percent*100.0),
    455456                                                "text", "",
    456457                                                NULL );
Note: See TracChangeset for help on using the changeset viewer.