mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +00:00
(try 2) fix a couple warnings after the number localization patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30517 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c355edfb6d
commit
91d7e3b191
@ -469,14 +469,6 @@ void GuiGraphics::on_angle_textChanged(const QString & filename)
|
|||||||
(filename != "0"));
|
(filename != "0"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns the number of the string s in the vector v
|
|
||||||
static int itemNumber(const vector<string> & v, string const & s)
|
|
||||||
{
|
|
||||||
vector<string>::const_iterator cit =
|
|
||||||
find(v.begin(), v.end(), s);
|
|
||||||
return (cit != v.end()) ? int(cit - v.begin()) : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void GuiGraphics::paramsToDialog(InsetGraphicsParams const & igp)
|
void GuiGraphics::paramsToDialog(InsetGraphicsParams const & igp)
|
||||||
{
|
{
|
||||||
|
@ -41,7 +41,7 @@ LengthValidator::LengthValidator(QWidget * parent)
|
|||||||
QValidator::State LengthValidator::validate(QString & qtext, int &) const
|
QValidator::State LengthValidator::validate(QString & qtext, int &) const
|
||||||
{
|
{
|
||||||
bool ok;
|
bool ok;
|
||||||
double d = qtext.trimmed().toDouble(&ok);
|
qtext.trimmed().toDouble(&ok);
|
||||||
if (qtext.isEmpty() || ok)
|
if (qtext.isEmpty() || ok)
|
||||||
return QValidator::Acceptable;
|
return QValidator::Acceptable;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user