Sometimes, these Alerts are displayed with only part of the background
greyed out, which smacks of "wierd xforms bug".
I can obtain this when loading a buffer from the command line "lyx buffer.lyx".
It appears that xforms isn't happy if the goodie is displayed before the
main window. Just a guess though...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4007
a592a061-630c-0410-9148-
cb99ea01b6c8
+2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * GraphicsCacheItem.C (convertToDisplayFormat):
+ * GraphicsConverter.C (build_script): remove the Alerts when things go
+ wrong as the inset displays the message anyway. Moreover, Alert seems
+ pretty temperamemtal at the moment.
+
2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
* GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
#include "lyx_main.h" // for global dispatch method
#include "support/LAssert.h"
#include "support/filetools.h"
-#include "frontends/Alert.h"
// Very, Very UGLY!
extern BufferView * current_view;
<< "The file contains " << from << " format data." << endl;
if (to.empty()) {
- Alert::alert(_("Unable to convert file ") +
- displayed_filename +
- _(" to a loadable format."));
setStatus(ErrorConverting);
return;
}
#include "debug.h"
#include "gettext.h"
-#include "frontends/Alert.h"
-
#include "support/filetools.h"
#include "support/forkedcall.h"
#include "support/path.h"
EdgePath edgepath = converters.getPath(from_format, to_format);
if (edgepath.empty()) {
- Alert::alert(_("Cannot convert file"),
- _("No information for converting from ")
- + formats.prettyName(from_format) + _(" to ")
- + formats.prettyName(to_format));
return false;
}