Great patch. Now I get a crash. So no need to install Visual Studio!
Thanks! :-)
Stefan
Am 28.02.2008 um 11:28 schrieb [EMAIL PROTECTED]:
Author: forenr
Date: Thu Feb 28 11:28:10 2008
New Revision: 23308
URL: http://www.lyx.org/trac/changeset/23308
Log:
Fix crash on cygwin with completion in text mode.
Modified:
lyx-devel/trunk/src/frontends/qt4/GuiCompleter.cpp
Modified: lyx-devel/trunk/src/frontends/qt4/GuiCompleter.cpp
URL:
http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiCompleter.cpp?rev=23308
=
=
=
=
=
=
=
=
======================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiCompleter.cpp (original)
+++ lyx-devel/trunk/src/frontends/qt4/GuiCompleter.cpp Thu Feb 28
11:28:10 2008
@@ -130,9 +130,10 @@
if (role != Qt::DisplayRole && role != Qt::EditRole)
return QVariant();
- if (index.column() == 0)
- return toqstr(list_->data(index.row()));
- else if (index.column() == 1) {
+ if (index.column() == 0) {
+ docstring const word = list_->data(index.row());
+ return toqstr(word);
+ } else if (index.column() == 1) {
// get icon from cache
QPixmap scaled;
QString const name = ":" +
toqstr(list_->icon(index.row()));