mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
rotatefix patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3130 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0543291106
commit
0a8ee85654
@ -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
|
||||
|
@ -28,9 +28,6 @@ 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
|
||||
@ -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 << ',';
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user