diff options
Diffstat (limited to 'quanta')
-rw-r--r-- | quanta/parsers/tag.h | 3 | ||||
-rw-r--r-- | quanta/parts/kafka/kafkacommon.cpp | 15 | ||||
-rw-r--r-- | quanta/src/Makefile.am | 4 |
3 files changed, 13 insertions, 9 deletions
diff --git a/quanta/parsers/tag.h b/quanta/parsers/tag.h index de7e0123..073e9568 100644 --- a/quanta/parsers/tag.h +++ b/quanta/parsers/tag.h @@ -88,6 +88,9 @@ public: void addAttribute(TagAttr attr) {attrs.append(attr);} /** Get the attribute number index */ TagAttr getAttribute(uint index) const {return attrs[index];} + /* /!\ KLUDGE WARNING /!\ */ + /** Get the attribute number index: returns a pointer */ + TagAttr* getAttribute_gcc46(uint index) {return (TagAttr*) &attrs[index];} /** Remove the attribute number index */ void deleteAttribute(uint index) {attrs.remove(attrs.at(index));} /** Insert a new Attribute, even if it already exists. Prefer using editAttribute. diff --git a/quanta/parts/kafka/kafkacommon.cpp b/quanta/parts/kafka/kafkacommon.cpp index 9d0c7cdf..94569fe2 100644 --- a/quanta/parts/kafka/kafkacommon.cpp +++ b/quanta/parts/kafka/kafkacommon.cpp @@ -740,17 +740,18 @@ void kafkaCommon::fitsNodesPosition(Node* startNode, int colMovement, int lineMo beginCol, lastLine + lineMovement, lastCol); for(j = 0; j < node->tag->attrCount(); ++j) { - if(node->tag->getAttribute(j).nameLine == SNbeginLine) + TagAttr* ta = node->tag->getAttribute_gcc46(j); + if(ta->nameLine == SNbeginLine) { - node->tag->getAttribute(j).nameLine += lineMovement; - node->tag->getAttribute(j).nameCol += colMovement; - node->tag->getAttribute(j).valueLine += lineMovement; - node->tag->getAttribute(j).valueCol += colMovement; + ta->nameLine += lineMovement; + ta->nameCol += colMovement; + ta->valueLine += lineMovement; + ta->valueCol += colMovement; } else { - node->tag->getAttribute(j).nameLine += lineMovement; - node->tag->getAttribute(j).valueLine += lineMovement; + ta->nameLine += lineMovement; + ta->valueLine += lineMovement; } } node = getNextNode(node, b); diff --git a/quanta/src/Makefile.am b/quanta/src/Makefile.am index 667bb89f..64e6c2c9 100644 --- a/quanta/src/Makefile.am +++ b/quanta/src/Makefile.am @@ -30,7 +30,7 @@ quanta_LDADD = $(top_builddir)/quanta/project/libproject.la \ $(top_builddir)/quanta/utility/libutility.la \ $(top_builddir)/lib/libquantamodule.la \ -lkatepartinterfaces $(LIB_KNEWSTUFF) $(LIB_KAFKA) $(LIB_CVSSERVICE) \ - $(LIB_KMDI) $(LIBXML_LIBS) $(LIBXSLT_LIBS) $(LIB_KABC) $(LIB_KSPELL) $(LIB_KHTML) + $(LIB_KMDI) $(LIBXML_LIBS) $(LIBXSLT_LIBS) $(LIB_KABC) $(LIB_KSPELL) $(LIB_KHTML) -lX11 -lkdefx # $(top_builddir)/lib/compatibility/libcompat.la AM_CPPFLAGS = -I$(top_srcdir)/quanta/dialogs \ @@ -64,7 +64,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/quanta/dialogs \ quanta_METASOURCES = AUTO # the library search path. -quanta_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI) -lkdefx $(LIB_KIO) -lktexteditor +quanta_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI) -lkdefx $(LIB_KIO) -lktexteditor -lX11 # this is where the kdelnk file will go xdg_apps_DATA = quanta.desktop |