Bug #1476
- #1476 Unicode indicators increase column width (thanks to Paul Kishimoto).
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include <Context.h>
|
||||
#include <ColStart.h>
|
||||
#include <text.h>
|
||||
#include <utf8.h>
|
||||
#include <i18n.h>
|
||||
|
||||
extern Context context;
|
||||
@@ -77,7 +78,7 @@ void ColumnStart::measure (Task& task, unsigned int& minimum, unsigned int& maxi
|
||||
if (_style == "active")
|
||||
{
|
||||
if (! task.has ("end"))
|
||||
minimum = maximum = context.config.get ("active.indicator").length ();
|
||||
minimum = maximum = utf8_width (context.config.get ("active.indicator"));
|
||||
}
|
||||
else
|
||||
ColumnDate::measure (task, minimum, maximum);
|
||||
|
||||
Reference in New Issue
Block a user