Commit ab8f6817 authored by Claes Sjofors's avatar Claes Sjofors

Title name wasn't set on graph opened from cmd 'show graph'

parent 4b11aad3
...@@ -1393,8 +1393,10 @@ ItemFile::ItemFile( XNavBrow *brow, const char *item_name, const char *text, ...@@ -1393,8 +1393,10 @@ ItemFile::ItemFile( XNavBrow *brow, const char *item_name, const char *text,
dest, dest_code, (void *)this, 1, &node); dest, dest_code, (void *)this, 1, &node);
if ( file_type == item_eFileType_Script) if ( file_type == item_eFileType_Script)
brow_SetAnnotPixmap( node, 0, brow->pixmap_script); brow_SetAnnotPixmap( node, 0, brow->pixmap_script);
else if ( file_type == item_eFileType_Graph) else if ( file_type == item_eFileType_Graph) {
strncpy( name, text, sizeof(name));
brow_SetAnnotPixmap( node, 0, brow->pixmap_graph); brow_SetAnnotPixmap( node, 0, brow->pixmap_graph);
}
else if ( file_type == item_eFileType_RttLog) else if ( file_type == item_eFileType_RttLog)
brow_SetAnnotPixmap( node, 0, brow->pixmap_curve); brow_SetAnnotPixmap( node, 0, brow->pixmap_curve);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment