[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Patch for kspread_editors.cc
From: Ferdinand Gassauer <gassauer () kde ! org>
Date: 2002-08-25 13:12:35
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
Hope that it is not to late for 1.2
Please check
- --
cu
ferdinand
http://www.goesing.at
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9aNfGWjd2zH2e+LERArmfAJ9j+4aQZtSiC7hawg/E5gjNe0p7dgCfVEb1
uljhrGsxDg7M3M/L3dGpru0=
=/rfk
-----END PGP SIGNATURE-----
["kspread_editors.cc.diff" (text/x-diff)]
Index: kspread_editors.cc
===================================================================
RCS file: /home/kde/koffice/kspread/kspread_editors.cc,v
retrieving revision 1.54
diff -u -3 -p -r1.54 kspread_editors.cc
--- kspread_editors.cc 2002/06/24 06:30:49 1.54
+++ kspread_editors.cc 2002/08/25 13:08:51
@@ -167,6 +167,18 @@ bool KSpreadTextEditor::checkChoose()
return false;
QString t = m_pEdit->text();
+
+ // allow + or - to start a formula
+ // to allow strings to start with + or - the string must
+ // be prefixed with '
+ // this is how excel works
+ // '=' is Shift+0 on German keyboard hence difficult to use
+ if ( ( t[0] == '+' ) || ( t[0] == '-' ) )
+ {
+ t = "=" + t;
+ m_pEdit->setText(t);
+ }
+
if ( t[0] != '=' )
canvas()->endChoose();
else
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic