[Libreoffice-commits] core.git: Branch 'feature/gsoc14-draw-chained-text-boxes' - svx/source

matteocam matteo.campanelli at gmail.com
Tue Jul 28 00:21:21 PDT 2015


 svx/source/svdraw/svdotext.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 4dd36bd8b1be298d6e5d7e3e833eb644d0aeaa3a
Author: matteocam <matteo.campanelli at gmail.com>
Date:   Tue Jul 28 09:20:13 2015 +0200

    Read IsChainable as Item
    
    Change-Id: Iee7b19bc711a8ce4934f2c5722191ae9ca87d358

diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index 1aa6e73..de5859e 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -1986,6 +1986,11 @@ void SdrTextObj::onEditOutlinerStatusEvent( EditStatus* pEditStatus )
 
 bool SdrTextObj::IsChainable() const
 {
+    // Read it as item
+    const SfxItemSet& rSet = GetObjectItemSet();
+    OUString aNextName = static_cast<const SfxStringItem&>(rSet.Get(SDRATTR_TEXT_CHAINNEXTNAME)).GetValue();
+    return aNextName == "";
+
     // XXX
     if (!GetName().startsWith("Chainable")) {
         //fprintf(stderr, "[CHAINABLE?] %p is _not_ chainable\n", this);


More information about the Libreoffice-commits mailing list