mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
DocBook: remove special options from InsetGraphics.cpp
This was not really a useful attribute for DocBook, or it must be parsed beforehand.
This commit is contained in:
parent
91d442d505
commit
1766bff806
@ -511,27 +511,23 @@ docstring InsetGraphics::createDocBookAttributes() const
|
||||
// stream since we copied the code from createLatexParams() ;-)
|
||||
|
||||
odocstringstream options;
|
||||
double const scl = convert<double>(params().scale);
|
||||
auto const scl = convert<double>(params().scale);
|
||||
if (!params().scale.empty() && !float_equal(scl, 0.0, 0.05)) {
|
||||
if (!float_equal(scl, 100.0, 0.05))
|
||||
options << " scale=\""
|
||||
<< support::iround(scl)
|
||||
<< "\" ";
|
||||
} else {
|
||||
if (!params().width.zero()) {
|
||||
if (!params().width.zero())
|
||||
options << " width=\"" << toDocbookLength(params().width) << "\" ";
|
||||
}
|
||||
if (!params().height.zero()) {
|
||||
if (!params().height.zero())
|
||||
options << " depth=\"" << toDocbookLength(params().height) << "\" ";
|
||||
}
|
||||
if (params().keepAspectRatio) {
|
||||
if (params().keepAspectRatio)
|
||||
// This will be irrelevant unless both width and height are set
|
||||
options << "scalefit=\"1\" ";
|
||||
}
|
||||
}
|
||||
|
||||
if (!params().special.empty())
|
||||
options << from_ascii(params().special) << " ";
|
||||
// TODO: parse params().special?
|
||||
|
||||
// trailing blanks are ok ...
|
||||
return options.str();
|
||||
|
Loading…
Reference in New Issue
Block a user