+2001-01-25 Dekel Tsur <dekelts@tau.ac.il>
+
+ * insetbib.C (bibitemWidest): Use lyxfont::width instead of
+ par->bibkey->width. This fixes the crashes when running without
+ gui or when having included documents.
+
2001-01-22 Dekel Tsur <dekelts@tau.ac.il>
* insetcommand.C (getAsString, setFromString): Cleanup.
#include "support/filetools.h"
#include "support/path.h"
#include "lyxrc.h"
+#include "font.h"
using std::ostream;
using std::ifstream;
while (par) {
if (par->bibkey) {
- int const wx = par->bibkey->width(bv, font);
+ int const wx =
+ lyxfont::width(par->bibkey->getScreenLabel(),
+ font);
if (wx > w) {
w = wx;
bkey = par->bibkey;