mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
image_ready is false at this point
Coverity issue 23299.
This commit is contained in:
parent
1d9c2daede
commit
7065406eca
@ -142,7 +142,7 @@ void RenderGraphic::metrics(MetricsInfo & mi, Dimension & dim) const
|
||||
loader_.startMonitoring();
|
||||
}
|
||||
|
||||
bool image_ready = displayGraphic(params_) && readyToDisplay(loader_);
|
||||
bool const image_ready = displayGraphic(params_) && readyToDisplay(loader_);
|
||||
if (image_ready) {
|
||||
dim.wid = loader_.image()->width() + 2 * Inset::TEXT_TO_INSET_OFFSET;
|
||||
dim.asc = loader_.image()->height();
|
||||
@ -150,7 +150,7 @@ void RenderGraphic::metrics(MetricsInfo & mi, Dimension & dim) const
|
||||
return;
|
||||
}
|
||||
|
||||
dim.asc = image_ready ? loader_.image()->height() : 50;
|
||||
dim.asc = 50;
|
||||
dim.des = 0;
|
||||
|
||||
int font_width = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user