wxFileHistory inconsitency

Leslie Newell lesnewell at fmail.co.uk
Fri Mar 2 13:26:15 PST 2007


If you add files to a wxFileHistory, files that have the same path as 
the last file have their path removed. However if you load the history 
from a wxConfig then all files are shown with the full path. You can 
work around this with the following code:

    hist->AddFileToHistory(hist->GetHistoryFile(0));
where hist is the wxFileHistory.

Les




More information about the wx-users mailing list