Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

1 charecter is missing in Copy!!! 10 years 8 months ago #3601

  • truculent
  • truculent's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 64
  • Thank you received: 0
hi i found another bug ! :( :ohmy: :huh: :dry:

when copy arabic text 1 charecter is going to missing !

i think this method do that:

-(NSString *)GetSelString
{
if( m_index1 < 0 || m_index2 < 0 || !m_ok ) return NULL;
int txt_len = Page_objsGetCharCount(m_page) + 1;
char *txt = (char *)malloc( txt_len * 2 );
int len = Page_objsGetString(m_page, m_index1, m_index2, txt, txt_len );
NSString *ret = [[NSString alloc] initWithUTF8String:txt];
free( txt );
return ret;
}

Please Log in or Create an account to join the conversation.

1 charecter is missing in Copy!!! 10 years 8 months ago #3608

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
may you send me sample? and tell me pageno that problem appears.
my mail: This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum