--- parser3/src/main/pa_string.C 2001/03/20 17:21:53 1.46.2.1 +++ parser3/src/main/pa_string.C 2001/03/24 15:58:01 1.49 @@ -5,10 +5,10 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_string.C,v 1.46.2.1 2001/03/20 17:21:53 paf Exp $ + $Id: pa_string.C,v 1.49 2001/03/24 15:58:01 paf Exp $ */ -#include +#include "pa_config_includes.h" #include "pa_pool.h" #include "pa_string.h" @@ -342,6 +342,8 @@ const Origin& String::origin() const { 0, "String::origin() of empty string called"); - return head.rows[0].item.origin; + // determining origin by last appended piece + // first frequently constant. ex: ^load[/file] "document_root" + "/file" + return append_here[-1].item.origin; } #endif