]> sourceware.org Git - lvm2.git/commit
libdm: report: fix field width calculation when using dm_report_column_headings
authorPeter Rajnoha <prajnoha@redhat.com>
Mon, 27 Jun 2016 12:27:43 +0000 (14:27 +0200)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 28 Jun 2016 01:28:40 +0000 (02:28 +0100)
commit3985b12a2d11d3f4fd3d98090caa8664be594f5c
treea00b9e081b57466a9b4862fb327ae54e16400de5
parent1b11f09d2a3bd3f6421776a004e62215054fa835
libdm: report: fix field width calculation when using dm_report_column_headings

This fixes commit 0ba5f4b8e977a6f2f45f95777da508b42d84c01a which moved
field recalculation (field width and sort position) from
dm_report_object to dm_report_output but it didn't handle the case when
dm_report_column_headings was used separately to report headings (before
dm_report_outpout call) and hence we ended up with intial widths for
fields in the headings.

If we're using dm_report_column_headings, we need to recalculate
fields if we haven't done so yet, the same way as we do in
dm_report_output.
libdm/libdm-report.c
This page took 0.037035 seconds and 5 git commands to generate.