OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../scribus/stl.diff
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./scribus/mspinbox.cpp.vanilla 2006-05-02 18:57:15.000000000 +0200
  17. +++ ./scribus/mspinbox.cpp 2006-05-02 18:58:24.000000000 +0200
  18. @@ -222,12 +222,12 @@
  19. //Get the index of our suffix
  20. int toConvertToIndex=unitIndexFromString(su);
  21. //Add in the fparser constants using our unit strings, and the conversion factors.
  22. - fp.AddConstant(strPT, value2value(1.0, SC_PT, toConvertToIndex));
  23. - fp.AddConstant(strMM, value2value(1.0, SC_MM, toConvertToIndex));
  24. - fp.AddConstant(strIN, value2value(1.0, SC_IN, toConvertToIndex));
  25. - fp.AddConstant(strP, value2value(1.0, SC_P, toConvertToIndex));
  26. - fp.AddConstant(strCM, value2value(1.0, SC_CM, toConvertToIndex));
  27. - fp.AddConstant(strC, value2value(1.0, SC_C, toConvertToIndex));
  28. + fp.AddConstant(strPT.ascii(), value2value(1.0, SC_PT, toConvertToIndex));
  29. + fp.AddConstant(strMM.ascii(), value2value(1.0, SC_MM, toConvertToIndex));
  30. + fp.AddConstant(strIN.ascii(), value2value(1.0, SC_IN, toConvertToIndex));
  31. + fp.AddConstant(strP.ascii(), value2value(1.0, SC_P, toConvertToIndex));
  32. + fp.AddConstant(strCM.ascii(), value2value(1.0, SC_CM, toConvertToIndex));
  33. + fp.AddConstant(strC.ascii(), value2value(1.0, SC_C, toConvertToIndex));
  34. int ret = fp.Parse(ts.latin1(), "", true);
  35. if (ret >= 0)
  36. return 0;
  37. @@ -351,7 +351,7 @@
  38. QMap<QString, double>::Iterator it=functionParserConstants.begin();
  39. while(it!=itend)
  40. {
  41. - fp.AddConstant(it.key(), it.data());
  42. + fp.AddConstant(it.key().ascii(), it.data());
  43. ++it;
  44. }
  45. }