diff --git a/utilities/diatheke/corediatheke.cpp b/utilities/diatheke/corediatheke.cpp index 68218f6..0259c87 100644 --- a/utilities/diatheke/corediatheke.cpp +++ b/utilities/diatheke/corediatheke.cpp @@ -303,7 +303,7 @@ void doquery(unsigned long maxverses = -1, unsigned char outputformat = FMT_PLAI target->setKey(ref); - const char * text = (const char *) *target; + const char * text = target->renderText().c_str(); if (outputformat == FMT_RTF) { *output << "{\\rtf1\\ansi{\\fonttbl{\\f0\\froman\\fcharset0\\fprq2 Times New Roman;}{\\f1\\fdecor\\fprq2 "; @@ -392,7 +392,7 @@ void doquery(unsigned long maxverses = -1, unsigned char outputformat = FMT_PLAI else { *output << ": "; } - *output << (const char*)*target; + *output << target->renderText().c_str(); if (font && (outputformat == FMT_HTML || outputformat == FMT_HTMLHREF || outputformat == FMT_XHTML || outputformat == FMT_THML || outputformat == FMT_CGI)) { *output << ""; } @@ -419,7 +419,7 @@ void doquery(unsigned long maxverses = -1, unsigned char outputformat = FMT_PLAI } else { target->setKey(*listkey.getElement(i)); - *output << (char*)target->getKeyText(); + *output << target->renderText().c_str(); if (font && (outputformat == FMT_HTML || outputformat == FMT_HTMLHREF || outputformat == FMT_XHTML || outputformat == FMT_THML || outputformat == FMT_CGI)) { *output << ": renderText().c_str(); if (font && (outputformat == FMT_HTML || outputformat == FMT_HTMLHREF || outputformat == FMT_XHTML || outputformat == FMT_THML || outputformat == FMT_CGI)) { *output << ""; }