mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Output debug message when creating bad length
Coverity is right to say that we should check the return value.
This commit is contained in:
parent
c6213b1b20
commit
5d29527916
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include "frontends/FontMetrics.h"
|
#include "frontends/FontMetrics.h"
|
||||||
|
|
||||||
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "support/lyxlib.h"
|
#include "support/lyxlib.h"
|
||||||
@ -362,9 +363,8 @@ GlueLength::GlueLength(Length const & len, Length const & plus,
|
|||||||
|
|
||||||
GlueLength::GlueLength(string const & data)
|
GlueLength::GlueLength(string const & data)
|
||||||
{
|
{
|
||||||
// false positive from coverity
|
if (!isValidGlueLength(data, this))
|
||||||
// coverity[CHECKED_RETURN]
|
LYXERR0("Invalid glue length " + data);
|
||||||
isValidGlueLength(data, this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user