<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/102552/">http://git.reviewboard.kde.org/r/102552/</a>
     </td>
    </tr>
   </table>
   <br />





 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">When I add a review in the UI I get a crash with the following backtrace:

#6  parent (this=0x0) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:250
#7  QTextObject::docHandle (this=0x0) at text/qtextobject.cpp:176
#8  0x00007f1503a47de6 in QTextFrame::begin (this=0x0) at text/qtextobject.cpp:625
#9  0x00007f1500f51ca7 in FrameIterator::FrameIterator (this=0x7fff66cd3e20, frame=0x0) at /home/tz/develop/kde/git/calligra/libs/textlayout/FrameIterator.cpp:33
#10 0x00007f1500f274bf in KoTextLayoutArea::preregisterFootNote (this=0x12d5350, note=0x304daa0) at /home/tz/develop/kde/git/calligra/libs/textlayout/KoTextLayoutArea.cpp:1542
#11 0x00007f1500f273d0 in KoTextLayoutArea::findFootNotes (this=0x12d5350, block=..., line=...) at /home/tz/develop/kde/git/calligra/libs/textlayout/KoTextLayoutArea.cpp:1529
#12 0x00007f1500f24d30 in KoTextLayoutArea::layoutBlock (this=0x12d5350, cursor=0x173d000) at /home/tz/develop/kde/git/calligra/libs/textlayout/KoTextLayoutArea.cpp:1114
#13 0x00007f1500f21b30 in KoTextLayoutArea::layout (this=0x12d5350, cursor=0x173d000) at /home/tz/develop/kde/git/calligra/libs/textlayout/KoTextLayoutArea.cpp:536
#14 0x00007f1500f3fc46 in KoTextLayoutRootArea::layoutRoot (this=0x12d5350, cursor=0x173d000) at /home/tz/develop/kde/git/calligra/libs/textlayout/KoTextLayoutRootArea.cpp:63
#15 0x00007f1500f41da2 in KoTextDocumentLayout::doLayout (this=0x1b463e0) at /home/tz/develop/kde/git/calligra/libs/textlayout/KoTextDocumentLayout.cpp:590
#16 0x00007f1500f419c4 in KoTextDocumentLayout::layout (this=0x1b463e0) at /home/tz/develop/kde/git/calligra/libs/textlayout/KoTextDocumentLayout.cpp:540

To reproduce 
- Open words with Professional Letter template
- Type "This is a test."
- Use the menu entry Insert > Footnote/Endnote... 
- Press enter
-> Crash</pre>
 <br />





<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/102552/diff/9/?file=37091#file37091line170" style="color: black; font-weight: bold; text-decoration: underline;">libs/kotext/KoInlineNote.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 9)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KoInlineNote::paint(QPainter &painter, QPaintDevice *pd, const QTextDocument *document, const QRectF &rect, QTextInlineObject object, int posInDocument, const QTextCharFormat &format)</pre></td>

  </tr>
 </tbody>




 
 



 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">167</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="k">if</span> <span class="p">(</span><span class="n">d</span><span class="o">-></span><span class="n">autoNumbering</span><span class="p">)</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">168</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">label</span> <span class="o">=</span> <span class="n">notesConfig</span><span class="o">-></span><span class="n">numberFormat</span><span class="p">().</span><span class="n">formattedNumber</span><span class="p">(</span><span class="n">d</span><span class="o">-></span><span class="n">label</span><span class="p">.</span><span class="n">toInt</span><span class="p">()</span><span class="o">+</span><span class="n">notesConfig</span><span class="o">-></span><span class="n">startValue</span><span class="p">()</span><span class="o">-</span><span class="mi">1</span><span class="p">);</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This line can be called with notesConfig not set as above there is a if and else if. Maybe add notesConfig to the if above.</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/102552/diff/9/?file=37093#file37093line29" style="color: black; font-weight: bold; text-decoration: underline;">libs/kotext/KoInlineTextObjectManager.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 9)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>

  </tr>
 </tbody>




 
 



 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">29</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="cp">#include "KoOdfNotesConfiguration.h"</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">30</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="cp">#include "KoTextDocument.h"</span></pre></td>
  </tr>

 </tbody>





 
 

 <tbody>

  <tr>
    <th bgcolor="#f0f0f0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">29</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="cp">#include "KoInlineCite.h"</span></pre></td>
    <th bgcolor="#f0f0f0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">31</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="cp">#include "KoInlineCite.h"</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#f0f0f0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">30</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#f0f0f0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">32</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
  </tr>

  <tr>
    <th bgcolor="#f0f0f0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">31</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="cp">#include <QTextCursor></span></pre></td>
    <th bgcolor="#f0f0f0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">33</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="cp">#include <QTextCursor></span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#f0f0f0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">32</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="cp">#include <QPainter></span></pre></td>
    <th bgcolor="#f0f0f0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">34</font></th>
    <td bgcolor="#ffffff" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="cp">#include <QPainter></span></pre></td>
  </tr>

 </tbody>



 
 



 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">35</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="cp">#include <QTextDocument></span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Are these includes needed?</pre>
</div>
<br />



<p>- Thorsten</p>


<br />
<p>On September 24th, 2011, 1:28 p.m., Brijesh Patel wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Calligra.</div>
<div>By Brijesh Patel.</div>


<p style="color: grey;"><i>Updated Sept. 24, 2011, 1:28 p.m.</i></p>






<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I worked on implementation of Footnotes and Endnotes in Calligra Words as part of my SoK project.
Footnotes/Endnotes can now be inserted,saved,loaded and also be configured too.
Can somebody review my work and notify me about bugs/crashes?</pre>
  </td>
 </tr>
</table>





<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>libs/kotext/KoInlineNote.h <span style="color: grey">(515a2f3)</span></li>

 <li>libs/kotext/KoInlineNote.cpp <span style="color: grey">(89200fd)</span></li>

 <li>libs/kotext/KoInlineTextObjectManager.h <span style="color: grey">(44990e9)</span></li>

 <li>libs/kotext/KoInlineTextObjectManager.cpp <span style="color: grey">(da8d9ca)</span></li>

 <li>libs/kotext/KoTextDocument.h <span style="color: grey">(a79638c)</span></li>

 <li>libs/kotext/KoTextDocument.cpp <span style="color: grey">(1265e2c)</span></li>

 <li>libs/kotext/KoTextEditor.h <span style="color: grey">(4947db8)</span></li>

 <li>libs/kotext/KoTextEditor.cpp <span style="color: grey">(d6d6738)</span></li>

 <li>libs/kotext/opendocument/KoTextLoader.cpp <span style="color: grey">(04ce705)</span></li>

 <li>libs/kotext/styles/KoStyleManager.h <span style="color: grey">(bae6eaf)</span></li>

 <li>libs/kotext/styles/KoStyleManager.cpp <span style="color: grey">(650899d)</span></li>

 <li>libs/odf/KoOdfNotesConfiguration.cpp <span style="color: grey">(bc26e31)</span></li>

 <li>libs/odf/KoOdfNumberDefinition.cpp <span style="color: grey">(d35a07f)</span></li>

 <li>libs/odf/KoOdfStylesReader.cpp <span style="color: grey">(35bffce)</span></li>

 <li>libs/textlayout/CMakeLists.txt <span style="color: grey">(5a4bfff)</span></li>

 <li>libs/textlayout/FrameIterator.h <span style="color: grey">(c8be153)</span></li>

 <li>libs/textlayout/FrameIterator.cpp <span style="color: grey">(fe9824e)</span></li>

 <li>libs/textlayout/KoTextLayoutArea.h <span style="color: grey">(045419f)</span></li>

 <li>libs/textlayout/KoTextLayoutArea.cpp <span style="color: grey">(fa50f5e)</span></li>

 <li>libs/textlayout/KoTextLayoutArea_paint.cpp <span style="color: grey">(6b3e293)</span></li>

 <li>libs/textlayout/KoTextLayoutEndNotesArea.h <span style="color: grey">(7b0c732)</span></li>

 <li>libs/textlayout/KoTextLayoutEndNotesArea.cpp <span style="color: grey">(bb746db)</span></li>

 <li>libs/textlayout/KoTextLayoutNoteArea.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>libs/textlayout/KoTextLayoutNoteArea.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>plugins/textshape/CMakeLists.txt <span style="color: grey">(3df7aa5)</span></li>

 <li>plugins/textshape/ReferencesTool.h <span style="color: grey">(c823be3)</span></li>

 <li>plugins/textshape/ReferencesTool.cpp <span style="color: grey">(b210a35)</span></li>

 <li>plugins/textshape/dialogs/NotesConfigurationDialog.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>plugins/textshape/dialogs/NotesConfigurationDialog.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>plugins/textshape/dialogs/NotesConfigurationDialog.ui <span style="color: grey">(PRE-CREATION)</span></li>

 <li>plugins/textshape/dialogs/SimpleFootEndNotesWidget.h <span style="color: grey">(1af35a8)</span></li>

 <li>plugins/textshape/dialogs/SimpleFootEndNotesWidget.cpp <span style="color: grey">(374b266)</span></li>

 <li>plugins/textshape/dialogs/SimpleFootEndNotesWidget.ui <span style="color: grey">(77f33e7)</span></li>

 <li>plugins/textshape/pics/settings-icon1_1.png <span style="color: grey">(PRE-CREATION)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/102552/diff/" style="margin-left: 3em;">View Diff</a></p>




  </td>
 </tr>
</table>








  </div>
 </body>
</html>