Changeset 5330be2 in sasview for src/sas/qtgui/Utilities


Ignore:
Timestamp:
Jul 31, 2018 6:06:15 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
4453043
Parents:
933f9e9
git-author:
Piotr Rozyczko <rozyczko@…> (07/31/18 06:04:46)
git-committer:
Piotr Rozyczko <rozyczko@…> (07/31/18 06:06:15)
Message:

Fix 2D chart failures with reporting. SASVIEW-950

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/ReportDialog.py

    r30bc96eb r5330be2  
    101101 
    102102        # translate png references into html from base64 string to on-disk name 
    103         cleanr = re.compile('<img src="data:image.*>') 
     103        cleanr = re.compile('<img src.*$') 
    104104        replacement_name = "" 
     105        html = self.data_html 
    105106        for picture in pictures: 
    106107            replacement_name += '<img src="'+ picture + '"><p></p>' 
    107  
    108108        # <img src="data:image/png;.*>  => <img src=filename> 
    109109        html = re.sub(cleanr, replacement_name, self.data_html) 
Note: See TracChangeset for help on using the changeset viewer.