]> git.lyx.org Git - features.git/commitdiff
rotatefix patch
authorLars Gullik Bjønnes <larsbj@gullik.org>
Sun, 2 Dec 2001 16:21:10 +0000 (16:21 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Sun, 2 Dec 2001 16:21:10 +0000 (16:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3130 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetgraphics.C
src/insets/insetgraphicsParams.C

index 89aa9820823c62544e2eefa80de96e8d89a68e72..845334873f3845d4ab39fc984bddea5cb2b4dbee 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-01  John Levon  <moz@compsoc.man.ac.uk>
+
+       * insetgraphics.C:
+       * insetgraphicsParams.C: fix inverted sense of float_equal
+
 2001-11-30  Juergen Vigna  <jug@sad.it>
 
        * insettabular.C (InsetTabular): use the save_id flag to create also
index dbc36183f4acff9edfea7968fed973374f60913b..b4f7f7cd5ea4255c4f5d571a557725c3b0ba559f 100644 (file)
@@ -28,10 +28,7 @@ Known BUGS:
        We should probably use what the user asks to use... but when he chooses
        by the file dialog we normally get an absolute path and this may not be 
        what the user meant.
-    * Bug in FileDlg class (src/filedlg.[hC]) when selecting a file and then
-        pressing ok, it counts as if no real selection done. Apparently
-        when choosing a file it doesn't update the select file input line.
-               
+
        * If we are trying to create a file in a read-only directory and there
                are graphics that need converting, the converting will fail because
                it is done in-place, into the same directory as the original image.
@@ -168,6 +165,7 @@ using std::endl;
 
 
 // This function is a utility function
+// ... that should be with ChangeExtension ...
 inline
 string const RemoveExtension(string const & filename)
 {
@@ -534,7 +532,7 @@ InsetGraphics::createLatexOptions() const
 
        // Make sure it's not very close to zero, a float can be effectively
        // zero but not exactly zero.
-       if (lyx::float_equal(params.rotateAngle, 0, 0.001)) {
+       if (!lyx::float_equal(params.rotateAngle, 0, 0.001)) {
                options << "angle="
                        << params.rotateAngle << ',';
        }
index 83956d378aa23e4c84c7e9b99729a138e6c3ce87..846f28d84eb15595de1801e3293d9f580a2640cc 100644 (file)
@@ -251,8 +251,9 @@ void InsetGraphicsParams::Write(Buffer const * buf, ostream & os) const
        writeResize(os, "height", heightResize, heightSize);
 
        writeOrigin(os, rotateOrigin);
-       if (lyx::float_equal(rotateAngle, 0.0, 0.001))
+       if (!lyx::float_equal(rotateAngle, 0.0, 0.001)) {
                os << " rotateAngle " << rotateAngle << '\n';
+       }
 }