1. 28 Tem, 2017 26 kayıt (commit)
  2. 27 Tem, 2017 14 kayıt (commit)
    • Takeshi Abe's avatar
      sw: these arrays are constant · 3956e4cb
      Takeshi Abe yazdı
      Change-Id: Id80e939412ed05324300189949d47b3f33bb5116
      Reviewed-on: https://gerrit.libreoffice.org/40263Tested-by: 's avatarJenkins <ci@libreoffice.org>
      Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
      3956e4cb
    • Caolán McNamara's avatar
      ofz#2759 null dereference · 6f5841e6
      Caolán McNamara yazdı
      Change-Id: I23671f0cea592c92a05b34b3cf284a47a73962b1
      6f5841e6
    • Michael Stahl's avatar
      sw: convert to assert · db7f2cbe
      Michael Stahl yazdı
      Change-Id: I96f91105d32b18c29bd82eedcf2f93c54ad5f229
      db7f2cbe
    • Michael Stahl's avatar
      sw: assert that index is valid in SwFntObj::DrawText() · 5989c572
      Michael Stahl yazdı
      If nCnt = 0 the only thing that will happen is an infinite loop.
      
      Change-Id: I23c5d0ff9d36fbfb3eabc93476fe3ca1c558f91c
      5989c572
    • Michael Stahl's avatar
      sw: inline pointless RESCHEDULE macro · e488c8d9
      Michael Stahl yazdı
      Change-Id: I093c8fbf5bb181d8e530fe33805a16aea94cdd62
      e488c8d9
    • Michael Stahl's avatar
      tdf#108991 sw: fix crash due to not formatted but "valid" SwTextFrame · b1ad2ee3
      Michael Stahl yazdı
      SwTextNode::EraseText() on the paragraph at the start of the
      selection notifies the SwTextFrame:
      
      0  in SwFrame::ImplInvalidateSize() (this=0x3088a20) at sw/source/core/layout/wsfrm.cxx:1568
      1  in SwFrame::InvalidateSize() (this=0x3088a20) at sw/source/core/inc/frame.hxx:849
      2  in SwTextFrame::InvalidateRange_(SwCharRange const&, long) (this=0x3088a20, aRange=..., nD=-62) at sw/source/core/text/txtfrm.cxx:741
      3  in SwTextFrame::InvalidateRange(SwCharRange const&, long) (this=0x3088a20, aRange=..., nD=-62) at sw/source/core/text/txtfrm.cxx:708
      4  in SwTextFrame::Modify(SfxPoolItem const*, SfxPoolItem const*) (this=0x3088a20, pOld=0x0, pNew=0x7ffc8da38c50) at sw/source/core/text/txtfrm.cxx:1005
      5  in SwClient::SwClientNotify(SwModify const&, SfxHint const&) (this=0x3088a20, rHint=...) at sw/source/core/attr/calbck.cxx:67
      6  in SwModify::CallSwClientNotify(SfxHint const&) const (this=0x2f05550, rHint=...) at sw/inc/calbck.hxx:355
      7  in SwModify::ModifyBroadcast(SfxPoolItem const*, SfxPoolItem const*) (this=0x2f05550, pOldValue=0x0, pNewValue=0x7ffc8da38c50) at sw/inc/calbck.hxx:176
      8  in SwModify::NotifyClients(SfxPoolItem const*, SfxPoolItem const*) (this=0x2f05550, pOldValue=0x0, pNewValue=0x7ffc8da38c50) at sw/source/core/attr/calbck.cxx:142
      9  in SwTextNode::EraseText(SwIndex const&, int, SwInsertFlags) (this=0x2f05550, rIdx=SwIndex (offset 1), nCount=62, nMode=SwInsertFlags::DEFAULT) at sw/source/core/txtnode/ndtxt.cxx:2355
      10 in SwUndoDelete::SaveContent(SwPosition const*, SwPosition const*, SwTextNode*, SwTextNode*) (this=0x3052950, pStt=0x7ffc8da390b8, pEnd=0x7ffc8da39100, pSttTextNd=0x2f05550, pEndTextNd=0x2faefe0) at sw/source/core/undo/undel.cxx:387
      
      However, at this point the first page, which contains this paragraph, is
      not visible; so the Action that is created in ViewShell::ImplEndAction()
      will skip over the first page and start at the 2nd page, which is the
      first visible one.
      
      Now it happens that the last paragraph in the document has a page break
      on it, and formatting it causes it to move forward (a new page to be
      inserted and the empty 2nd page to be deleted).
      
      Unfortunately it then decides to reset the mbValidSize flag on the
      preceding SwTextFrame, assuming that it was set by its own moving
      forward, and not already set before.
      
      0  in ValidateSz(SwFrame*) (pFrame=0x3088a20) at sw/source/core/layout/calcmove.cxx:1082
      1  in SwContentFrame::MakeAll(OutputDevice*) (this=0x308b4a0) at sw/source/core/layout/calcmove.cxx:1276
      2  in SwFrame::PrepareMake(OutputDevice*) (this=0x308b4a0, pRenderContext=0x306f850) at sw/source/core/layout/calcmove.cxx:346
      3  in SwFrame::Calc(OutputDevice*) const (this=0x308b4a0, pRenderContext=0x306f850) at sw/source/core/layout/trvlfrm.cxx:1760
      4  in SwLayAction::IsShortCut(SwPageFrame*&) (this=0x7ffc8da394a0, prPage=@0x7ffc8da392b8: 0x7491e30) at sw/source/core/layout/layact.cxx:1085
      5  in SwLayAction::InternalAction(OutputDevice*) (this=0x7ffc8da394a0, pRenderContext=0x306f850) at sw/source/core/layout/layact.cxx:490
      6  in SwLayAction::Action(OutputDevice*) (this=0x7ffc8da394a0, pRenderContext=0x306f850) at sw/source/core/layout/layact.cxx:351
      7  in SwViewShell::ImplEndAction(bool) (this=0x30829c0, bIdleEnd=false) at sw/source/core/view/viewsh.cxx:278
      8  in SwViewShell::EndAction(bool) (this=0x30829c0, bIdleEnd=false) at sw/inc/viewsh.hxx:605
      9  in SwCursorShell::EndAction(bool, bool) (this=0x30829c0, bIdleEnd=false, DoSetPosX=false) at sw/source/core/crsr/crsrsh.cxx:258
      10 in SwActContext::~SwActContext() (this=0x7ffc8da396a0, __in_chrg=<optimized out>) at sw/source/core/edit/edws.cxx:159
      11 in SwWrtShell::DelRight() (this=0x30829c0) at sw/source/uibase/wrtsh/delete.cxx:260
      
      So at the end of the Action, the first page is still not valid, and
      the SwTextFrame has mbValidPos = false, but it does have
      mbValidSize = true.
      
      Then when the SwCursorShell::UpdateCursor() calls
      SwViewShell::MakeVisible(), which creates another Action, the
      SwTextFrame is not formatted and its SwTextPortions do not match
      the paragraph text content, which is the cause of the crash.
      
      Change-Id: I6e8153c574469a94d190fda8bc3007d17a474c7f
      b1ad2ee3
    • Michael Stahl's avatar
      sw: fix string accesses in SwScanner::NextWord() (related: tdf#109081) · af78fa5f
      Michael Stahl yazdı
      getWordBoundary() can return bounds that do not include the starting
      nPos, if there are ZWSP characters at the starting position.
      
      This happens in the bugdoc of tdf#109081 where paragraph starts with 3
      ZWSP and then 5 dashes, SwScanner is created from 0 to 1 and bounds are
      3 to 8.
      
      Change-Id: I5fc41b98568a7211fc7d5f29bb87840371a4c005
      af78fa5f
    • Dennis Francis's avatar
      tdf#108887 : Move the code of ScDrawView::CheckOle()... · 04461743
      Dennis Francis yazdı
      to getOleSourceRanges( renamed from getChartSourceRanges)
      and optionally calculate source ranges to avoid code
      duplication and do OLE detection as done in
      CheckOle() which was working well before the commit
      c55d5226.
      
      Matching test cases (in uitest) coming up soon in another commit.
      
      Change-Id: I64a12eef02afb488bed4bc8de1a18823c89128bb
      Reviewed-on: https://gerrit.libreoffice.org/40278Tested-by: 's avatarJenkins <ci@libreoffice.org>
      Reviewed-by: 's avatarJean-Baptiste Faure <jbfaure@libreoffice.org>
      Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
      04461743
    • Mohammed Abdul Azeem's avatar
      Moving legacy contexts to FastContexts: · e89548c1
      Mohammed Abdul Azeem yazdı
      ScXMLDataPilotTableContext
      ScXMLDPSourceSQLContext
      ScXMLDPSourceTableContext
      ScXMLDPSourceQueryContext
      ScXMLSourceServiceContext
      ScXMLDataPilotGrandTotalContext
      ScXMLSourceCellRangeContext
      ScXMLDataPilotFieldContext
      ScXMLDataPilotFieldReferenceContext
      ScXMLDataPilotLevelContext
      ScXMLDataPilotDisplayInfoContext
      ScXMLDataPilotSortInfoContext
      ScXMLDataPilotLayoutInfoContext
      ScXMLDataPilotSubTotalsContext
      ScXMLDataPilotSubTotalContext
      ScXMLDataPilotMembersContext
      ScXMLDataPilotMemberContext
      ScXMLDataPilotGroupsContext
      ScXMLDataPilotGroupContext
      ScXMLDataPilotGroupMemberContext
      ScXMLDPFilterContext
      
      Change-Id: Ie01ddb0f740a1b41a44e4abc9fe1bea3ab32cb12
      Reviewed-on: https://gerrit.libreoffice.org/40326Tested-by: 's avatarJenkins <ci@libreoffice.org>
      Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
      e89548c1
    • Jan-Marek Glogowski's avatar
      loplugin:externandnotdefined + loplugin:unreffun · 3358e731
      Jan-Marek Glogowski yazdı
      Change-Id: Iedd529d4b5064beed3d2fd99cfe4e0312c024187
      3358e731
    • Markus Mohrhard's avatar
      add test for update address code, related tdf#107289 · 0ca473cb
      Markus Mohrhard yazdı
      Change-Id: I955cf49fe5fa47fb38d2c8dacf4aadc8e3f7d651
      Reviewed-on: https://gerrit.libreoffice.org/39317Tested-by: 's avatarJenkins <ci@libreoffice.org>
      Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
      0ca473cb
    • Eike Rathke's avatar
      Ditch use of EditTextObject::Store() in ScGlobal::EETextObjEqual() · 238de04d
      Eike Rathke yazdı
      This was the last incarnation of SfxItem binary stream serialization that is to
      be eliminated after clipboard use is gone.
      
      The "full" EditTextObject::operator==() in EditTextObjectImpl::operator==(),
      and via ContentInfo::operator==() in SfxItemSet::operator==(), also compare the
      SfxItemPool pointers which gets in the way here (not stored to stream hence
      didn't matter and maybe the reason for not having switched EETextObjEqual() to
      use operator==() back in the days).
      
      Introduce *::Equals() functions that do not compare pool pointers and let
      SfxItemSet::Equals() in that case not assume it would be operating on one pool
      only.
      
      Change-Id: Ifff939a92101c7f74695b676a45a7fdbb4f1d7f6
      Reviewed-on: https://gerrit.libreoffice.org/40492Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
      Tested-by: 's avatarJenkins <ci@libreoffice.org>
      238de04d
    • Caolán McNamara's avatar
      Related: tdf#106872 factor out getting selected shapes · 221dae68
      Caolán McNamara yazdı
      Change-Id: I765c482a41e9681a1eb145c1833cc94f35a27db3
      221dae68
    • Caolán McNamara's avatar
      Related: tdf#106872 amount of a11y selection listeners constantly grows · 998e3d5c
      Caolán McNamara yazdı
      so it gets progressively slower
      
      Change-Id: Ib53c69231c902d064b939be096e0dbeab2f0fc71
      Reviewed-on: https://gerrit.libreoffice.org/40490Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
      Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
      998e3d5c