mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 00:55:13 -04:00
fixed abug i introduced, copy of grp icon data made in p3distrib
- it was previously corrupting group keys added dynamics size to grps created - previously limited to 16000 bytes git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2928 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7cd6103ff7
commit
105e617596
4 changed files with 154 additions and 108 deletions
|
@ -124,13 +124,12 @@ bool p3Blogs::getBlogInfo(std::string cId, BlogInfo &ci)
|
|||
ci.pop = gi->sources.size();
|
||||
ci.lastPost = gi->lastPost;
|
||||
|
||||
if(gi->grpIcon.image_type == RSTLV_IMAGE_TYPE_PNG){
|
||||
ci.pngChanImage = (unsigned char*) gi->grpIcon.binData.bin_data;
|
||||
ci.pngImageLen = gi->grpIcon.binData.bin_len;
|
||||
}else{
|
||||
ci.pngChanImage = NULL;
|
||||
ci.pngChanImage = gi->grpIcon.pngImageData;
|
||||
|
||||
if(ci.pngChanImage != NULL)
|
||||
ci.pngImageLen = gi->grpIcon.imageSize;
|
||||
else
|
||||
ci.pngImageLen = 0;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue