rotatefix patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3130 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2001-12-02 16:21:10 +00:00
parent 0543291106
commit 0a8ee85654
3 changed files with 10 additions and 6 deletions

View 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

View 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 << ',';
}

View 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';
}
}