Comment 7 for bug 892572

Revision history for this message
Spencer Stirling (stirling) wrote :

Yes, that works because g_strrstr matches the last occurrence of the "."

The only problem occurs when somebody has a dot in their filename (e.g. figure1.2) but explicitly removes the ".pdf" extension for some reason. In that case the code will think that ".2" is the extension, and it will cut it off. I'm not certain how to fix this except using ".pdf" rather than "." as the search string, however this seems to introduce as much ugliness as it fixes. Any suggestions?