Skip to content
Snippets Groups Projects
Commit eef6abab authored by Tofu Linden's avatar Tofu Linden
Browse files

merge from PE's viewer-release

parents 057568bd 7253c7ee
No related branches found
No related tags found
No related merge requests found
...@@ -121,7 +121,12 @@ std::string LLDate::toHTTPDateString (tm * gmt, std::string fmt) ...@@ -121,7 +121,12 @@ std::string LLDate::toHTTPDateString (tm * gmt, std::string fmt)
// use strftime() as it appears to be faster than std::time_put // use strftime() as it appears to be faster than std::time_put
char buffer[128]; char buffer[128];
strftime(buffer, 128, fmt.c_str(), gmt); strftime(buffer, 128, fmt.c_str(), gmt);
return std::string(buffer); std::string res(buffer);
#if LL_WINDOWS
// Convert from locale-dependant charset to UTF-8 (EXT-8524).
res = ll_convert_string_to_utf8_string(res);
#endif
return res;
} }
void LLDate::toStream(std::ostream& s) const void LLDate::toStream(std::ostream& s) const
......
...@@ -96,9 +96,12 @@ void LLPanelInventoryListItemBase::draw() ...@@ -96,9 +96,12 @@ void LLPanelInventoryListItemBase::draw()
if (mSeparatorVisible && mSeparatorImage) if (mSeparatorVisible && mSeparatorImage)
{ {
// stretch along bottom of listitem, using image height // place under bottom of listitem, using image height
// item_pad in list using the item should be >= image height
// to avoid cropping of top of the next item.
LLRect separator_rect = getLocalRect(); LLRect separator_rect = getLocalRect();
separator_rect.mTop = mSeparatorImage->getHeight(); separator_rect.mTop = separator_rect.mBottom;
separator_rect.mBottom -= mSeparatorImage->getHeight();
mSeparatorImage->draw(separator_rect); mSeparatorImage->draw(separator_rect);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment