class IndexNamesEqual : public std::unary_function<Index, bool>
{
public:
- IndexNamesEqual(docstring const & name) : name_(name) {}
+ IndexNamesEqual(docstring const & name)
+ : name_(name)
+ {}
bool operator()(Index const & index) const
{
class IndexHasShortcut : public std::unary_function<Index, bool>
{
public:
- IndexHasShortcut(docstring const & shortcut) : shortc_(shortcut) {}
+ IndexHasShortcut(docstring const & shortcut)
+ : shortc_(shortcut)
+ {}
bool operator()(Index const & index) const
{
docstring shortc_;
};
-}
+} // namespace
/////////////////////////////////////////////////////////////////////
// no theApp() with command line export
if (theApp())
theApp()->getRgbColor(Color_indexlabel, color_);
+ else
+ frontend::Application::getRgbColorUncached(Color_indexlabel, color_);
}
{
if (str.size() == 7 && str[0] == '#')
color_ = rgbFromHexName(str);
- else
+ else {
// no color set or invalid color -- use predefined color
- theApp()->getRgbColor(Color_indexlabel, color_);
+ // no theApp() with command line export
+ if (theApp())
+ theApp()->getRgbColor(Color_indexlabel, color_);
+ else
+ frontend::Application::getRgbColorUncached(Color_indexlabel, color_);
+ }
}