[Bugs] #4037 Write UNSP: Write-80 fail to start open a file

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Oct 16 09:46:48 EDT 2012


#4037: Write-80 fail to start open a file
------------------------------------------+---------------------------------
    Reporter:  cjl                        |          Owner:  godiard    
        Type:  defect                     |         Status:  new        
    Priority:  Unspecified by Maintainer  |      Milestone:  0.98       
   Component:  Write                      |        Version:  Unspecified
    Severity:  Unspecified                |       Keywords:             
Distribution:  Unspecified                |   Status_field:  Unconfirmed
------------------------------------------+---------------------------------

Comment(by godiard):

 Garnacho propose the following patch:

 diff --git a/src/af/xap/gtk/xap_UnixFrameImpl.cpp
 b/src/af/xap/gtk/xap_UnixFrameImpl.cpp
 index 87120a4..edde978 100644
 --- a/src/af/xap/gtk/xap_UnixFrameImpl.cpp
 +++ b/src/af/xap/gtk/xap_UnixFrameImpl.cpp
 @@ -1754,6 +1754,9 @@ gint XAP_UnixFrameImpl::_imRetrieveSurrounding_cb
 (GtkIMContext *context,

         PT_DocPosition begin_p, end_p, here;

 +       if (!pView)
 +               return FALSE;
 +
         begin_p = pView->mapDocPosSimple (FV_DOCPOS_BOB);
         end_p = pView->mapDocPosSimple (FV_DOCPOS_EOB);
         here = pView->getInsPoint ();

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/4037#comment:8>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list