WIP: format string problem fixed in 2.5d view

This commit is contained in:
Matthias Koefferlein 2021-12-05 00:08:08 +01:00
parent 6aae46772c
commit ef62a126d4
5 changed files with 25 additions and 1 deletions

View File

@ -613,5 +613,11 @@ private:
}
namespace tl
{
template<> DB_PUBLIC bool test_extractor_impl (tl::Extractor &ex, db::EdgePairs &b);
template<> DB_PUBLIC void extractor_impl (tl::Extractor &ex, db::EdgePairs &b);
}
#endif

View File

@ -1210,4 +1210,10 @@ private:
} // namespace db
namespace tl
{
template<> DB_PUBLIC bool test_extractor_impl (tl::Extractor &ex, db::Edges &b);
template<> DB_PUBLIC void extractor_impl (tl::Extractor &ex, db::Edges &b);
}
#endif

View File

@ -1821,5 +1821,11 @@ private:
} // namespace db
namespace tl
{
template<> DB_PUBLIC bool test_extractor_impl (tl::Extractor &ex, db::Region &b);
template<> DB_PUBLIC void extractor_impl (tl::Extractor &ex, db::Region &b);
}
#endif

View File

@ -618,5 +618,11 @@ private:
}
namespace tl
{
template<> DB_PUBLIC bool test_extractor_impl (tl::Extractor &ex, db::Texts &b);
template<> DB_PUBLIC void extractor_impl (tl::Extractor &ex, db::Texts &b);
}
#endif

View File

@ -115,7 +115,7 @@ D25View::menu_activated (const std::string &symbol)
static QString scale_factor_to_string (double f)
{
return QString (QString::fromUtf8 ("%.3g").arg (f));
return QString (QString::fromUtf8 ("%1")).arg (f, 0, 'g', 3);
}
void