#3849 Shorten column space for WSEGAICD table to 1

This commit is contained in:
Gaute Lindkvist 2018-12-11 16:57:05 +01:00
parent 3dafd06859
commit 41dc8feca3
3 changed files with 12 additions and 0 deletions

View File

@ -681,6 +681,8 @@ void RicWellPathExportMswCompletionsImpl::generateWsegvalvTable(RifEclipseDataTa
void RicWellPathExportMswCompletionsImpl::generateWsegAicdTable(RifEclipseDataTableFormatter& formatter,
const RicMswExportInfo& exportInfo)
{
int existingColSpacing = formatter.columnSpacing();
formatter.setColumnSpacing(1);
bool foundValve = false;
for (std::shared_ptr<RicMswSegment> location : exportInfo.wellSegmentLocations())
@ -758,6 +760,7 @@ void RicWellPathExportMswCompletionsImpl::generateWsegAicdTable(RifEclipseDataTa
{
formatter.tableCompleted();
}
formatter.setColumnSpacing(existingColSpacing);
}
//--------------------------------------------------------------------------------------------------

View File

@ -41,6 +41,14 @@ RifEclipseDataTableFormatter::~RifEclipseDataTableFormatter()
CVF_ASSERT(m_columns.empty());
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
int RifEclipseDataTableFormatter::columnSpacing() const
{
return m_colSpacing;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -108,6 +108,7 @@ public:
RifEclipseDataTableFormatter(QTextStream& out);
virtual ~RifEclipseDataTableFormatter();
int columnSpacing() const;
void setColumnSpacing(int spacing);
void setTableRowPrependText(const QString& text);
void setTableRowLineAppendText(const QString& text);