+2005-01-20 Angus Leeming <leeming@lyx.org>
+
+ * math_spaceinset.C (validate):
+ latex_mathspace[space_] == "negmedspace" is unsafe because both
+ operands are of type "char const *". Performing comparison on
+ the address of the string literal therefore. Fix is to explicitly
+ convert one operand to a string.
+ With thanks to MSVC ;-)
+
2005-01-19 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* math_symbolinset.C (validate): require wasysym as needed
void MathSpaceInset::validate(LaTeXFeatures & features) const
{
if (space_ >= 0 && space_< nSpace) {
- if ((latex_mathspace[space_] == "negmedspace")
- || (latex_mathspace[space_] == "negthickspace"))
+ if ((latex_mathspace[space_] == string("negmedspace"))
+ || (latex_mathspace[space_] == string("negthickspace")))
features.require("amsmath");
}
}
+2005-01-20 Angus Leeming <leeming@lyx.org>
+
+ * lyxlib.h (float_equal): promote parameters to double.
+
+ * path.C (Path): silence MSVC warning about block of code that
+ does nothing.
+
2005-01-20 Asger Ottar Alstrup <aalstrup@laerdal.dk>
* FileInfo.h, chdir.C, forkedcall.C, forkedcontr.C, getcwd.C,
*
* This will check if 'var' is approx. equal to 'number' with error of 1/1000
*/
-inline bool float_equal(float var, float number, float error)
+inline bool float_equal(double var, double number, double error)
{
return (number - error <= var && var <= number + error);
}
{
if (!path.empty()) {
pushedDir_ = getcwd();
+#if 0
if (pushedDir_.empty() || chdir(path))
/* FIXME: throw */;
+#endif
} else {
popped_ = true;
}