-----BEGIN PGP SIGNED MESSAGE-----
On Donnerstag, 12. Dezember 2002 02:08, John Levon wrote:
> This one :
>
> http://marc.theaimsgroup.com/?l=lyx-devel&m=103932187604592&w=2
> bool QLyXKeySym::isOK() const
> {
> - return ! key_ == 0;
> + bool const ok(!(text_.isEmpty() && key_ == Qt::Key_unknown));
> + lyxerr[Debug::KEY] << "isOK is " << ok << endl;
> + return ok;
> }
This may not be sufficient. I have cases in which
key_ == Qt::Key_unknown
text_.isEmpty() == false !!
text_.isNull() == true
which should be impossible, but I can see it. (text_.length() == 1 in that case btw.)
--> bool const ok(!((text_.isEmpty() || text_.isNull()) && key_ ==
Qt::Key_unknown))
Kornel
- --
Kornel Benko
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQCVAwUBPfhhKLewfbDGmeqhAQHskQP/fJwIXiF3fmStQ//V4p3M+B5DBdpGm7gJ
N2WDRMZwcc4b6l3TjNvyEkJVv6G5kScJo3IX7UZdqL+DY1iHUKbBNiRwH3QZzGwt
bqJJTKj5YrNOSjJEXLsP8/95GmCdMI5tEhxFZXegMrVkV1UOuhJSeKve1HakhGCf
Kqu+XUCJ48U=
=G40R
-----END PGP SIGNATURE-----