Fix two instances where theFormats() was used instead of a local parameter.
Fix layout test.
ConverterList::iterator it = converterlist_.begin();
ConverterList::iterator end = converterlist_.end();
for (; it != end; ++it) {
ConverterList::iterator it = converterlist_.begin();
ConverterList::iterator end = converterlist_.end();
for (; it != end; ++it) {
- it->setFrom(theFormats().getFormat(it->from()));
- it->setTo(theFormats().getFormat(it->to()));
+ it->setFrom(formats.getFormat(it->from()));
+ it->setTo(formats.getFormat(it->to()));
{
if (converterlist_.begin() != converterlist_.end()) {
ConverterList::iterator it = converterlist_.end() - 1;
{
if (converterlist_.begin() != converterlist_.end()) {
ConverterList::iterator it = converterlist_.end() - 1;
- it->setFrom(theFormats().getFormat(it->from()));
- it->setTo(theFormats().getFormat(it->to()));
+ it->setFrom(formats.getFormat(it->from()));
+ it->setTo(formats.getFormat(it->to()));
#include "support/Messages.h"
using namespace std;
#include "support/Messages.h"
using namespace std;
+ // Dummy formats support (needed by Lexer)
+ Formats & theFormats()
+ {
+ static Formats dummy_formats;
+ return dummy_formats;
+ }
+
string alignmentToCSS(LyXAlignment)
{
return string();
string alignmentToCSS(LyXAlignment)
{
return string();
{
static Formats dummy_formats;
return dummy_formats;
{
static Formats dummy_formats;
return dummy_formats;