Make tests pass again (minor glitches).
This commit is contained in:
@ -142,9 +142,13 @@ namespace zaaReloaded2.Formatter
|
||||
// Create undo record and styles prior to iterating over the elements
|
||||
// because a column switching element might trigger output to the
|
||||
// document.
|
||||
Globals.ThisAddIn.Application.UndoRecord.StartCustomRecord(
|
||||
String.Format("Laborformatierung ({0})", Properties.Settings.Default.AddinName)
|
||||
);
|
||||
bool hasAddin = Globals.ThisAddIn != null;
|
||||
if (hasAddin)
|
||||
{
|
||||
Globals.ThisAddIn.Application.UndoRecord.StartCustomRecord(
|
||||
String.Format("Laborformatierung ({0})", Properties.Settings.Default.AddinName)
|
||||
);
|
||||
}
|
||||
CreateStyles();
|
||||
|
||||
int current = 0;
|
||||
@ -172,15 +176,6 @@ namespace zaaReloaded2.Formatter
|
||||
}
|
||||
}
|
||||
|
||||
// Write everything to the Word document
|
||||
bool hasAddin = Globals.ThisAddIn != null;
|
||||
if (hasAddin)
|
||||
{
|
||||
Globals.ThisAddIn.Application.UndoRecord.StartCustomRecord(
|
||||
String.Format("Laborformatierung ({0})", Properties.Settings.Default.AddinName)
|
||||
);
|
||||
}
|
||||
CreateStyles();
|
||||
_secondaryBuffer.Flush();
|
||||
if (hasAddin)
|
||||
{
|
||||
|
Reference in New Issue
Block a user