From 1428b404564a2d36e7726849981929d3f28fe0fb Mon Sep 17 00:00:00 2001 From: corvid Date: Thu, 3 Sep 2009 18:15:03 +0000 Subject: always use getRef for Words and Lines --- dw/listitem.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dw/listitem.cc') diff --git a/dw/listitem.cc b/dw/listitem.cc index 338f8486..a4c58074 100644 --- a/dw/listitem.cc +++ b/dw/listitem.cc @@ -57,7 +57,7 @@ int ListItem::getValue () if (words->size () == 0) return 0; else - return words->get(0).size.width + words->get(0).origSpace; + return words->getRef(0)->size.width + words->getRef(0)->origSpace; } void ListItem::setMaxValue (int maxValue, int value) -- cgit v1.2.3