+2001-01-24 Dekel Tsur <dekelts@tau.ac.il>
+
+ * MenuBackend.C (expand): Fix the sorting of the formats.
+
2001-01-24 John Levon <moz@compsoc.man.ac.uk>
* lyx_main.C: tiny error message fix
}
}
+class compare_format {
+public:
+ bool operator()(Format const * p1, Format const * p2) {
+ return *p1 < *p2;
+ }
+};
+
void Menu::expand(Menu & tomenu, Buffer * buf) const
{
for (const_iterator cit = begin();
formats = Exporter::GetExportableFormats(buf, false);
action = LFUN_EXPORT;
}
- sort(formats.begin(), formats.end());
+ sort(formats.begin(), formats.end(), compare_format());
for (vector<Format const *>::const_iterator fit = formats.begin();
fit != formats.end() ; ++fit) {